[MPlayer-dev-eng] any lost PATCHES ?

Morten Volden mvolden at tdcadsl.dk
Fri Aug 30 01:32:43 CEST 2002


Morten Volden wrote:

> I think my patch may have gotten lost in the mail pile somewhere. I 
> send it 08/15/2002 ([PATCH] Case INsensitive for file extensions). I 
> got a few reply's, but newer one telling me whether the patch was 
> accepted or rejected :-(
>
> The patch is for Gui/mplayer/fs.c and simply enables the 'open file' 
> GUI to display files with different cases in the extensions (e.g. 
> *.ASF and *.Mp3)
>
> This re-send patch should be for the very latest CVS-version 
> (CVS-020829-23:33)

Hold on, that's definately wrong (didn't notice that pontscho is working 
with the CVS rigth now ;-).  This patch should be for the latest 
CVS-version........ :-)

Regards

Morten Volden








>
> Furthermore, I have added the file type RM in the 'video file types' 
> listitem.
>
>>
>> Btw i don't want any big changes after pre7, we should really release 
>> the
>> 0.90 stable ASAP without pre8 pre9 and pre99...
>>
> Btw: Suggestion: In order to avoid pre99 (and above ;). Why not 
> catagorize the different items in the wish list after which release 
> they are planned for?
>
> Thanx for a great player....... :-)
>
> Regards
>
> Morten Volden
>
>
>------------------------------------------------------------------------
>
>? fs.c.diff
>Index: Gui/mplayer/gtk/fs.c
>===================================================================
>RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/fs.c,v
>retrieving revision 1.26
>diff -u -r1.26 fs.c
>--- Gui/mplayer/gtk/fs.c	29 Aug 2002 17:16:33 -0000	1.26
>+++ Gui/mplayer/gtk/fs.c	29 Aug 2002 23:19:06 -0000
>@@ -33,37 +33,38 @@
> gchar         * fsSelectedFile = NULL;
> gchar         * fsSelectedDirectory = NULL;
> unsigned char * fsThatDir = ".";
>-gchar           fsFilter[64] = "*";
>+gchar           fsFilter[134] = "*";
> 
> int             fsPressed = 0;
> int             fsType    = 0;
> 
> int gtkVFileSelect = 0;
> 
>-#define fsNumberOfVideoFilterNames 9
>+#define fsNumberOfVideoFilterNames 10
> 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]" },
>+	   { "RM files(*.rm)",			                        "*.[rR][mM]" },
>+	   { "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,*.rm)", "*.[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],*[rR][mM]" },
>            { "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,17 +73,18 @@
> 	 
> #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] =
>+
> #ifdef HAVE_FREETYPE
>-	 { { "font files (*.ttf)",					   "*.ttf" },
>+	 { { "font files (*.ttf)",					   "*.[tT][tT][fF]" },
> #else
>-	 { { "font files (*.desc)",					   "*.desc" },
>+	 { { "font files (*.desc)",					   "*.[dD][eE][sS][cC]" },
> #endif
> 	   { "All files ( * )",						   "*" } };
> 
>@@ -147,7 +149,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++ )
>


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fs.c.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020830/40781947/attachment.txt>


More information about the MPlayer-dev-eng mailing list