From b2fe3cd05da0f3c60e08b919e22686213565f63a Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 26 Apr 2020 11:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common/MediaSink.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Common/MediaSink.cpp b/src/Common/MediaSink.cpp index 53697a56..49e6ad99 100644 --- a/src/Common/MediaSink.cpp +++ b/src/Common/MediaSink.cpp @@ -77,6 +77,7 @@ void MediaSink::checkTrackIfReady_l(const Track::Ptr &track){ } void MediaSink::checkTrackIfReady(const Track::Ptr &track){ + lock_guard lck(_mtx); if (!_allTrackReady && !_trackReadyCallback.empty()) { if (track) { checkTrackIfReady_l(track);