mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 19:51:49 +08:00
修复无人播放事件触发延时不准确的bug
This commit is contained in:
@@ -87,14 +87,6 @@ bool RtpSession::close(MediaSource &sender, bool force) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void RtpSession::onNoneReader(MediaSource &sender) {
|
||||
//此回调在其他线程触发
|
||||
if(!_process || _process->totalReaderCount()){
|
||||
return;
|
||||
}
|
||||
MediaSourceEvent::onNoneReader(sender);
|
||||
}
|
||||
|
||||
int RtpSession::totalReaderCount(MediaSource &sender) {
|
||||
//此回调在其他线程触发
|
||||
return _process ? _process->totalReaderCount() : sender.totalReaderCount();
|
||||
|
||||
Reference in New Issue
Block a user