From: Daniel Caujolle-B. <f1...@us...> - 2002-06-11 20:55:14
|
Update of /cvsroot/xine/xine-ui/src/xitk In directory usw-pr-cvs1:/tmp/cvs-serv25557 Modified Files: main.c Log Message: Fixed segfault on some systems. Index: main.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/xitk/main.c,v retrieving revision 1.99 retrieving revision 1.100 diff -u -r1.99 -r1.100 --- main.c 10 Jun 2002 23:27:56 -0000 1.99 +++ main.c 11 Jun 2002 20:55:09 -0000 1.100 @@ -571,7 +571,7 @@ /* * Callback of config value change about reporting mode. */ -static void unhandled_codec_mode_cb( void *dummy, cfg_entry_t *entry) { +static void unhandled_codec_mode_cb(void *dummy, cfg_entry_t *entry) { unhandled_codec_mode = entry->num_value; } @@ -619,13 +619,13 @@ * initialize codec reporting stuff. */ static void init_report_codec(void) { - char *warn_unhandled_codec[] = { - _("never"), - _("video only"), - _("audio only"), - _("always"), - NULL - }; + char *warn_unhandled_codec[5]; + + warn_unhandled_codec[0] = _("never"); + warn_unhandled_codec[1] = _("video only"); + warn_unhandled_codec[2] = _("audio only"); + warn_unhandled_codec[3] = _("always"); + warn_unhandled_codec[4] = NULL; /* * Register codec reporting |