Commit af5759ac authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Input fixes

parent fcef2e3a
......@@ -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 )
......
......@@ -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 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment