[vlc-commits] demux: adaptive: missing lock

Francois Cartegnie git at videolan.org
Tue May 21 15:47:18 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May 21 14:40:08 2019 +0200| [855a0132c70300573ad7e5e48194437d0e2bdfe4] | committer: Francois Cartegnie

demux: adaptive: missing lock

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=855a0132c70300573ad7e5e48194437d0e2bdfe4
---

 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 fbf342e728..587521998a 100644
--- a/modules/demux/adaptive/PlaylistManager.cpp
+++ b/modules/demux/adaptive/PlaylistManager.cpp
@@ -405,6 +405,7 @@ vlc_tick_t PlaylistManager::getFirstPlaybackTime() const
 
 vlc_tick_t PlaylistManager::getCurrentPlaybackTime() const
 {
+    vlc_mutex_locker locker(&demux.lock);
     return demux.i_nzpcr;
 }
 



More information about the vlc-commits mailing list