Skip to content

Commit

Permalink
Live: Unmount flv when disposing.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 31, 2024
1 parent f8319d6 commit 49b74f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trunk/src/app/srs_app_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1909,6 +1909,9 @@ SrsLiveSource::SrsLiveSource()

SrsLiveSource::~SrsLiveSource()
{
// Because source maybe created by http stream, so we must notify the handler to cleanup.
handler->on_unpublish(req);

_srs_config->unsubscribe(this);

// never free the consumers,
Expand Down

0 comments on commit 49b74f0

Please sign in to comment.