]> git.sesse.net Git - vlc/commitdiff
Input fixes
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 21 Oct 2006 18:40:30 +0000 (18:40 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 21 Oct 2006 18:40:30 +0000 (18:40 +0000)
src/input/demux.c
src/input/item.c

index c62be61b9bef871ae50c66b506325f541c3cfa10..6149dd2aabe41c66aab0e3112202205565b8fe04 100644 (file)
@@ -38,7 +38,7 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
                        stream_t *s, es_out_t *out, vlc_bool_t b_quick )
 {
     demux_t *p_demux = vlc_object_create( p_obj, VLC_OBJECT_DEMUX );
-    char *psz_module;
+    const char *psz_module;
 
     if( p_demux == NULL ) return NULL;
 
@@ -80,7 +80,7 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
         *     anyway
         *  - wav can't be added 'cause of a52 and dts in them as raw audio
          */
-         static struct { char *ext; char *demux; } exttodemux[] =
+         static struct { const char *ext; const char *demux; } exttodemux[] =
          {
             { "aac",  "aac" },
             { "aiff", "aiff" },
@@ -102,7 +102,7 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
             { NULL,  NULL },
         };
         /* Here, we don't mind if it does not work, it must be quick */
-        static struct { char *ext; char *demux; } exttodemux_quick[] =
+        static struct { const char *ext; const char *demux; } exttodemux_quick[] =
         {
             { "mp3", "mpga" },
             { "ogg", "ogg" },
@@ -110,7 +110,7 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
             { NULL, NULL }
         };
 
-        char *psz_ext = strrchr( p_demux->psz_path, '.' ) + 1;
+        const char *psz_ext = strrchr( p_demux->psz_path, '.' ) + 1;
         int  i;
 
         if( !b_quick )
index 24975f2d1147f36fe612acf1a51c03cbabac7919..a9937b79d36973794a9f0dca6aaf375f61cd5467 100644 (file)
@@ -263,7 +263,7 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
 static void GuessType( input_item_t *p_item)
 {
     int i;
-    static struct { char *psz_search; int i_type; }  types_array[] =
+    static struct { const char *psz_search; int i_type; }  types_array[] =
     {
         { "http", ITEM_TYPE_NET },
         { "dvd", ITEM_TYPE_DISC },