? fs.c.diff Index: fs.c =================================================================== RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/fs.c,v retrieving revision 1.24 diff -u -r1.24 fs.c --- fs.c 5 Aug 2002 01:14:14 -0000 1.24 +++ fs.c 14 Aug 2002 18:09:06 -0000 @@ -33,7 +33,7 @@ gchar * fsSelectedFile = NULL; gchar * fsSelectedDirectory = NULL; unsigned char * fsThatDir = "."; -gchar fsFilter[64] = "*"; +gchar fsFilter[124] = "*"; int fsPressed = 0; int fsType = 0; @@ -42,28 +42,28 @@ #define fsNumberOfVideoFilterNames 9 char * fsVideoFilterNames[fsNumberOfVideoFilterNames+1][2] = - { { "MPEG files (*.mpg,*.mpeg)", "*.mpg,*.mpeg" }, - { "VOB files (*.vob)", "*.vob" }, - { "AVI files (*.avi)", "*.avi" }, - { "QT files (*.mov)", "*.mov" }, - { "ASF files (*.asf)", "*.asf" }, - { "VIVO files (*.viv)", "*.viv" }, - { "Windows Media Video (*.wmv)", "*.wmv" }, - { "Audio files (*.wav,*.mp2,*.mp3,*.wma)", "*.wav,*.mp2,*.mp3,*.wma" }, - { "Video files (*.mpg,*.mpeg,*.vob,*.avi,*.mov,*.asf,*.viv,*.wmv)", "*.mpg,*.mpeg,*.vob,*.avi,*.mov,*.asf,*.viv,*.wmv" }, + { { "MPEG files (*.mpg,*.mpeg)", "*.[mM][pP][gG],*.[mM][pP][eE][gG]" }, + { "VOB files (*.vob)", "*.[vV][oO][bB]" }, + { "AVI files (*.avi)", "*.[aA][vV][iI]" }, + { "QT files (*.mov)", "*.[mM][oO][vV]" }, + { "ASF files (*.asf)", "*.[aA][sS][fF]" }, + { "VIVO files (*.viv)", "*.[vV][iI][vV]" }, + { "Windows Media Video (*.wmv)", "*.[wW][mM][vV]" }, + { "Audio files (*.wav,*.mp2,*.mp3,*.wma)", "*.[wW][aA][vV],*.[mM][pP][23],*.[wW][mM][aA]" }, + { "Video files (*.mpg,*.mpeg,*.vob,*.avi,*.mov,*.asf,*.viv,*.wmv)", "*.[mM][pP][gG],*.[mM][pP][eE][gG],*.[vV][oO][bB],*.[aA][vV][iI],*.[mM][oO][vV],*.[aA][sS][fF],*.[vV][iI][vV],*.[wW][mM][vV]" }, { "All files (*)", "*" } }; #define fsNumberOfSubtitleFilterNames 9 char * fsSubtitleFilterNames[fsNumberOfSubtitleFilterNames+1][2] = - { { "UTF (*.utf)", "*.utf" }, - { "SUB (*.sub)", "*.sub" }, - { "SRT (*.srt)", "*.str" }, - { "SMI (*.smi)", "*.smi" }, - { "RT (*.rt) ", "*.rt" }, - { "TXT (*.txt)", "*.txt" }, - { "SSA (*.ssa)", "*.ssa" }, - { "AQT (*.aqt)", "*.aqt" }, - { "Subtitles (*.utf,*.sub,*.srt,*.smi,*.rt,*.txt,*.ssa,*.aqt)", "*.utf,*.sub,*.srt,*.smi,*.rt,*.txt,*.ssa,*.aqt" }, + { { "UTF (*.utf)", "*.[uU][tT][fF]" }, + { "SUB (*.sub)", "*.[sS][uU][bB]" }, + { "SRT (*.srt)", "*.[sS][tT][rR]" }, + { "SMI (*.smi)", "*.[sS][mM][iI]" }, + { "RT (*.rt) ", "*.[rR][tT]" }, + { "TXT (*.txt)", "*.[tT][xX][tT]" }, + { "SSA (*.ssa)", "*.[sS][sS][aA]" }, + { "AQT (*.aqt)", "*.[aA][qQ][tT]" }, + { "Subtitles (*.utf,*.sub,*.srt,*.smi,*.rt,*.txt,*.ssa,*.aqt)", "*.[uU][tT][fF],*.[sS][uU][bB],*.[sS][rR][tT],*.[sS][mM][iI],*.[rR][tT],*.[tT][xX][tT],*.[sS][sS][aA],*.[aA][qQ][tT]" }, { "All files ( * )", "*" } }; #define fsNumberOfOtherFilterNames 0 @@ -72,14 +72,14 @@ #define fsNumberOfAudioFilterNames 3 char * fsAudioFileNames[fsNumberOfAudioFilterNames+1][2] = - { { "WAV files (*.wav)", "*.wav" }, - { "MP3 files (*.mp2, *.mp3)", "*.mp2,*.mp3" }, - { "Audio files (*.wav,*.mp2,*.mp3)", "*.wav,*.mp2,*.mp3" }, + { { "WAV files (*.wav)", "*.[wW][aA][vV]" }, + { "MP3 files (*.mp2, *.mp3)", "*.[mM][pP][23]" }, + { "Audio files (*.wav,*.mp2,*.mp3)", "*.[wW][aA][vV],*.[mM][pP][23]" }, { "All files ( * )", "*" } }; #define fsNumberOfFontFilterNames 1 char * fsFontFileNames[fsNumberOfFontFilterNames+1][2] = - { { "font files (*.desc)", "*.desc" }, + { { "font files (*.desc)", "*.[dD][eE][sS][cC]" }, { "All files ( * )", "*" } }; GtkWidget * fsFileNamesList; @@ -143,7 +143,7 @@ //printf( "fsFiler: '%s'\n",fsFilter ); if ( strchr( fsFilter,',' ) ) { - char tmp[8]; + char tmp[20]; int i,c,glob_param = 0; //printf( "sub item detected.\n" ); for ( i=0,c=0;i<(int)strlen( fsFilter ) + 1;i++,c++ )