mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
avoid multi rtmp player metadata
This commit is contained in:
parent
16e791b83c
commit
4108e81d2f
@ -99,7 +99,11 @@ private:
|
|||||||
if (_rtmp_src) {
|
if (_rtmp_src) {
|
||||||
_rtmp_src->setMetaData(val);
|
_rtmp_src->setMetaData(val);
|
||||||
}
|
}
|
||||||
|
if(_demuxer){
|
||||||
|
return;
|
||||||
|
}
|
||||||
_demuxer = std::make_shared<RtmpDemuxer>();
|
_demuxer = std::make_shared<RtmpDemuxer>();
|
||||||
|
//TraceL<<" _wait_track_ready "<<_wait_track_ready;
|
||||||
_demuxer->setTrackListener(this, _wait_track_ready);
|
_demuxer->setTrackListener(this, _wait_track_ready);
|
||||||
_demuxer->loadMetaData(val);
|
_demuxer->loadMetaData(val);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user