mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 23:32:22 +08:00
优化关闭媒体源相关逻辑: #1963
This commit is contained in:
@@ -230,12 +230,9 @@ bool MP4Reader::seekTo(uint32_t stamp_seek) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MP4Reader::close(MediaSource &sender, bool force) {
|
||||
if (!_muxer || (!force && _muxer->totalReaderCount())) {
|
||||
return false;
|
||||
}
|
||||
_timer.reset();
|
||||
WarnL << sender.getUrl() << " " << force;
|
||||
bool MP4Reader::close(MediaSource &sender) {
|
||||
_timer = nullptr;
|
||||
WarnL << "close media: " << sender.getUrl();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user