[vlc-commits] demux: adaptive: missing lock

Francois Cartegnie git at videolan.org
Mon Mar 30 16:15:47 CEST 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May 21 14:40:08 2019 +0200| [0c90c515079d0c00f216a30e4ffeeaed97b0a93e] | committer: Francois Cartegnie

demux: adaptive: missing lock

(cherry picked from commit 855a0132c70300573ad7e5e48194437d0e2bdfe4)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=0c90c515079d0c00f216a30e4ffeeaed97b0a93e
---

 modules/demux/adaptive/PlaylistManager.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/adaptive/PlaylistManager.cpp b/modules/demux/adaptive/PlaylistManager.cpp
index bf4f8aba25..b7dfec1ae0 100644
--- a/modules/demux/adaptive/PlaylistManager.cpp
+++ b/modules/demux/adaptive/PlaylistManager.cpp
@@ -418,6 +418,7 @@ mtime_t PlaylistManager::getFirstPlaybackTime() const
 
 mtime_t PlaylistManager::getCurrentPlaybackTime() const
 {
+    vlc_mutex_locker locker(const_cast<vlc_mutex_t *>(&demux.lock));
     return demux.i_nzpcr;
 }
 



More information about the vlc-commits mailing list