This commit is contained in:
xiongziliang 2020-04-26 11:25:25 +08:00
parent 2c9141513d
commit b2fe3cd05d

View File

@ -77,6 +77,7 @@ void MediaSink::checkTrackIfReady_l(const Track::Ptr &track){
}
void MediaSink::checkTrackIfReady(const Track::Ptr &track){
lock_guard<recursive_mutex> lck(_mtx);
if (!_allTrackReady && !_trackReadyCallback.empty()) {
if (track) {
checkTrackIfReady_l(track);