diff --git a/src/Common/MediaSource.cpp b/src/Common/MediaSource.cpp index 8583f114..4cd5f90f 100644 --- a/src/Common/MediaSource.cpp +++ b/src/Common/MediaSource.cpp @@ -208,7 +208,7 @@ bool MediaSource::close(bool force) { if(!listener){ return false; } - return listener->close(*this,force); + return listener->close(*this,force) && unregist(); } void MediaSource::onReaderChanged(int size) {