mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
加锁
This commit is contained in:
parent
2c9141513d
commit
b2fe3cd05d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user