[MPlayer-dev-eng] [PATCH] Adds *.divx files to GUI -> Open file
Jacek Bilski
dino at camelot.homedns.org
Sat Aug 31 16:44:28 CEST 2002
Hello!
I use MPlayer with GUI. I use .divx extesion for files with DivX
content. So now to open .divx file I have to cd into directory, change
file mask to "All files" "*.*" and now I can open file. Patch adds an
option of .divx files to file mask dropdown list and also adds .divx
files to "Video files". It makes required change adding 1 to
fsNumberOfVideoFilterNames.
--
--== Jacek "Dino" Bilski ==-- --== Registered Linux User #165468 ==--
--== dino at camelot.homedns.org ==-- --== ICQ# 4875149 ==--
-= PGP fingerprint 2228 3F73 A678 81C3 4ABE 2617 C77C AE70 5B44 CFBE =-
-------------- next part --------------
# This patch adds to a list of video filter names *.divx files.
# Those are used for video files with DIVX content.
# It's not (yet) common to use those extensions, but some people do (me i.e.).
diff -Naur MPlayer.old/Gui/mplayer/gtk/fs.c MPlayer/Gui/mplayer/gtk/fs.c
--- MPlayer.old/Gui/mplayer/gtk/fs.c Sat Aug 31 14:15:53 2002
+++ MPlayer/Gui/mplayer/gtk/fs.c Sat Aug 31 14:16:03 2002
@@ -40,17 +40,18 @@
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" },
+ { "DIVX files (*.divx)", "*.divx"},
{ "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" },
+ { "Video files (*.mpg,*.mpeg,*.vob,*.avi,*.divx,*.mov,*.asf,*.viv,*.wmv)", "*.mpg,*.mpeg,*.vob,*.avi,*.divx,*.mov,*.asf,*.viv,*.wmv" },
{ "All files (*)", "*" } };
#define fsNumberOfSubtitleFilterNames 9
More information about the MPlayer-dev-eng
mailing list