[vlc-devel] [PATCH 7/8] mkv: use a const iterator when updating the PCR

Steve Lhomme robux4 at videolabs.io
Mon Jul 31 15:02:59 CEST 2017


---
 modules/demux/mkv/mkv.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 23e7adbc72..c4909d5c0b 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -752,7 +752,7 @@ static int Demux( demux_t *p_demux)
 
         typedef matroska_segment_c::tracks_map_t tracks_map_t;
 
-        for( tracks_map_t::iterator it = p_segment->tracks.begin(); it != p_segment->tracks.end(); ++it )
+        for( tracks_map_t::const_iterator it = p_segment->tracks.begin(); it != p_segment->tracks.end(); ++it )
         {
             mkv_track_t &track = *it->second;
 
-- 
2.12.1



More information about the vlc-devel mailing list