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

Missing const

parent b83f3304
...@@ -768,7 +768,7 @@ marq_option_bynumber(unsigned option) ...@@ -768,7 +768,7 @@ marq_option_bynumber(unsigned option)
}; };
enum { num_opts = sizeof(optlist) / sizeof(*optlist) }; enum { num_opts = sizeof(optlist) / sizeof(*optlist) };
opt_t *r = option < num_opts ? optlist+option : NULL; const opt_t *r = option < num_opts ? optlist+option : NULL;
if( !r ) if( !r )
libvlc_printerr( "Unknown marquee option" ); libvlc_printerr( "Unknown marquee option" );
return r; return r;
...@@ -816,7 +816,7 @@ void libvlc_video_set_marquee_string( libvlc_media_player_t *p_mi, ...@@ -816,7 +816,7 @@ void libvlc_video_set_marquee_string( libvlc_media_player_t *p_mi,
/* logo module support */ /* logo module support */
static opt_t * static const opt_t *
logo_option_bynumber( unsigned option ) logo_option_bynumber( unsigned option )
{ {
static const opt_t vlogo_optlist[] = static const opt_t vlogo_optlist[] =
...@@ -833,7 +833,7 @@ logo_option_bynumber( unsigned option ) ...@@ -833,7 +833,7 @@ logo_option_bynumber( unsigned option )
}; };
enum { num_vlogo_opts = sizeof(vlogo_optlist) / sizeof(*vlogo_optlist) }; enum { num_vlogo_opts = sizeof(vlogo_optlist) / sizeof(*vlogo_optlist) };
opt_t *r = option < num_vlogo_opts ? vlogo_optlist+option : NULL; const opt_t *r = option < num_vlogo_opts ? vlogo_optlist+option : NULL;
if( !r ) if( !r )
libvlc_printerr( "Unknown logo option" ); libvlc_printerr( "Unknown logo option" );
return r; return r;
...@@ -864,7 +864,7 @@ int libvlc_video_get_logo_int( libvlc_media_player_t *p_mi, ...@@ -864,7 +864,7 @@ int libvlc_video_get_logo_int( libvlc_media_player_t *p_mi,
/* adjust module support */ /* adjust module support */
static opt_t * static const opt_t *
adjust_option_bynumber( unsigned option ) adjust_option_bynumber( unsigned option )
{ {
static const opt_t optlist[] = static const opt_t optlist[] =
...@@ -878,7 +878,7 @@ adjust_option_bynumber( unsigned option ) ...@@ -878,7 +878,7 @@ adjust_option_bynumber( unsigned option )
}; };
enum { num_opts = sizeof(optlist) / sizeof(*optlist) }; enum { num_opts = sizeof(optlist) / sizeof(*optlist) };
opt_t *r = option < num_opts ? optlist+option : NULL; const opt_t *r = option < num_opts ? optlist+option : NULL;
if( !r ) if( !r )
libvlc_printerr( "Unknown adjust option" ); libvlc_printerr( "Unknown adjust option" );
return r; return r;
......
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