mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
加锁
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user