Skip to content

Commit

Permalink
fix hls segments cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
suzp1984 committed Aug 29, 2024
1 parent f8319d6 commit ab94d42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trunk/src/app/srs_app_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,7 @@ srs_error_t SrsLiveSourceManager::notify(int event, srs_utime_t interval, srs_ut
// When source expired, remove it.
// @see https://github.com/ossrs/srs/issues/713
if (source->stream_is_dead()) {
source->dispose();
SrsContextId cid = source->source_id();
if (cid.empty()) cid = source->pre_source_id();
srs_trace("Live: cleanup die source, id=[%s], total=%d", cid.c_str(), (int)pool.size());
Expand Down

0 comments on commit ab94d42

Please sign in to comment.