[vlc-devel] commit: Shared object friendliness ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jun 29 17:38:44 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 29 18:24:13 2009 +0300| [352bf61782eaf077b46f9a2dcd6d564c7ca4b5a4] | committer: Rémi Denis-Courmont
Shared object friendliness
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=352bf61782eaf077b46f9a2dcd6d564c7ca4b5a4
---
src/control/video.c | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/control/video.c b/src/control/video.c
index fd5ce50..51231a7 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -637,7 +637,7 @@ void libvlc_video_set_deinterlace( libvlc_media_player_t *p_mi, int b_enable,
static const char *get_marquee_int_option_identifier(unsigned option)
{
- static const char * marquee_table[] =
+ static const char tab[][16] =
{
"marq",
"marq-color",
@@ -647,24 +647,22 @@ static const char *get_marquee_int_option_identifier(unsigned option)
"marq-size",
"marq-timeout",
"marq-x",
- "marq-y"
+ "marq-y",
};
- static const unsigned marquee_table_size = sizeof(marquee_table)/sizeof(*marquee_table);
- if( option >= marquee_table_size )
+ if( option >= sizeof( tab ) / sizeof( tab[0] ) )
return NULL;
- return marquee_table[option];
+ return tab[option];
}
static const char *get_marquee_string_option_identifier(unsigned option)
{
- static const char * marquee_table[] =
+ static const char tab[][16] =
{
- "marq-marquee"
+ "marq-marquee",
};
- static const unsigned marquee_table_size = sizeof(marquee_table)/sizeof(*marquee_table);
- if( option >= marquee_table_size )
+ if( option >= sizeof( tab ) / sizeof( tab[0] ) )
return NULL;
- return marquee_table[option];
+ return tab[option];
}
More information about the vlc-devel
mailing list