]> git.sesse.net Git - vlc/commitdiff
Fix some const.
authorChristophe Mutricy <xtophe@videolan.org>
Fri, 20 Jul 2007 17:19:17 +0000 (17:19 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Fri, 20 Jul 2007 17:19:17 +0000 (17:19 +0000)
modules/demux/mkv.cpp
modules/demux/mp4/mp4.c

index 39497fa85c0f9c55e2019e45c6d564307dc29d17..f04ae9d0432721246770396d5e792cd81bee0cdd 100644 (file)
@@ -1444,8 +1444,8 @@ static int Open( vlc_object_t * p_this )
     demux_sys_t        *p_sys;
     matroska_stream_c  *p_stream;
     matroska_segment_c *p_segment;
-    uint8_t            *p_peek;
-    std::string        s_path, s_filename;
+    const uint8_t      *p_peek;
+    std::string         s_path, s_filename;
     vlc_stream_io_callback *p_io_callback;
     EbmlStream         *p_io_stream;
 
@@ -1544,9 +1544,11 @@ static int Open( vlc_object_t * p_this )
 #endif
                         {
                             // test wether this file belongs to our family
-                            uint8_t *p_peek;
-                            bool file_ok = false;
-                            stream_t *p_file_stream = stream_UrlNew( p_demux, s_filename.c_str());
+                            const uint8_t *p_peek;
+                            bool          file_ok = false;
+                            stream_t      *p_file_stream = stream_UrlNew( 
+                                                            p_demux, 
+                                                            s_filename.c_str());
                             /* peek the begining */
                             if( p_file_stream &&
                                 stream_Peek( p_file_stream, &p_peek, 4 ) >= 4
index cafbb93210abef4ac52d1d87ae45021fd97009a5..e52dc609e4a5a02d5d68d7c3c97d52326ed0f52e 100644 (file)
@@ -268,7 +268,7 @@ static int Open( vlc_object_t * p_this )
     demux_t  *p_demux = (demux_t *)p_this;
     demux_sys_t     *p_sys;
 
-    uint8_t         *p_peek;
+    const uint8_t   *p_peek;
 
     MP4_Box_t       *p_ftyp;
     MP4_Box_t       *p_rmra;