gmplayer の自家製パッチ
随分前につくったものをちょっとばかり….
flv 拡張子をデフォルトにしておきたい
最近,flv なものが多いので,gmplayer もデフォルトでオープンできるようにしておきたかったので,ソースをそのように修正しました.gmplayer-add-flv-extension.patch てな名前にしとります.MPlayer-users ML に投げておいたけど,放置やね….
--- mplayer-1.0rc2.r25095/gui/mplayer/gtk/fs.c.orig 2007-11-18 22:09:59.000000000 +0900 +++ mplayer-1.0rc2.r25095/gui/mplayer/gtk/fs.c 2007-11-18 22:12:38.000000000 +0900 @@ -45,6 +45,7 @@ { "VOB files (*.vob)", "*.vob" }, { "AVI files (*.avi)", "*.avi" }, { "DiVX files (*.divx)", "*.divx" }, + { "Flash Video (*.flv)", "*.flv" }, { "QuickTime files (*.mov,*.qt,*.mp4)", "*.mov,*.qt,*.mp4" }, { "ASF files (*.asf)", "*.asf" }, { "VIVO files (*.viv)", "*.viv" }, @@ -59,7 +60,7 @@ { "WMA files (*.wma)", "*.wma" }, { "Matroska Audio files (*.mka)", "*.mka" }, { "Audio files", "*.wav,*.ogg,*.mp2,*.mp3,*.wma,*.mka" }, - { "Video files", "*.asf,*.avi,*.divx,*.fli,*.flc,*.ogm,*.mpg,*.mpeg,*.m1v,*.mov,*.mp4,*.nuv,*.qt,*.rm,*.vob,*.viv,*.wmv,*.mkv,*.bin" }, + { "Video files", "*.asf,*.avi,*.divx,*.fli,*.flc,*.flv,*.ogm,*.mpg,*.mpeg,*.m1v,*.mov,*.mp4,*.nuv,*.qt,*.rm,*.vob,*.viv,*.wmv,*.mkv,*.bin" }, { "All files", "*" }, { NULL,NULL } };
パッチの送り方がまずかったよぉ!出直しだい!
At Sun, 06 Jan 2008 08:30:55 -0500, The Wanderer wrote: > Patches should be sent to mplayer-dev-eng. > Patches should be attached, not pasted into the mail. > Patches should be made using 'svn diff' against the latest SVN version > of the code. > Please read DOCS/tech/patches.txt and follow the rules in there.
(Vine Linux 用)about ダイアログにバージョンを表示させたい.
gmplayer の about ダイアログに SVN のリビジョンを出そうってだけです.とりあえず,Vine の RPM spec ファイル用にかますパッチどす.gmplayer-about-vine.patch てな名前にしております.
--- mplayer-1.0rc2.r24930/gui/mplayer/gtk/about.c.orig 2007-11-03 02:09:49.000000000 +0900 +++ mplayer-1.0rc2.r24930/gui/mplayer/gtk/about.c 2007-11-03 02:18:15.000000000 +0900 @@ -91,6 +91,8 @@ gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, #endif "\n" + "VINE_VERSION\n" + "\n" MSGTR_ABOUT_UHU " (http://www.uhulinux.hu/)\n" "\n"
自家製 mplayer-vlmp.spec(抜粋)に以下のようにして,上記 2 つのパッチを当てております.継ぎ接ぎしまくりですから,もっと楽チンにすれば良いですね….
### display build version for gmplayer Patch100: gmplayer-about-vine.patch ### add *.flv extension for Open dialog Patch101: gmplayer-add-flv-extension.patch %prep %setup -q -n mplayer-%{version}.%{revision} %patch100 -p1 -b .vine ./version.sh pushd gui/mplayer/gtk/ grep MPlayer ../../../version.h | \ %{__sed} "s/\#define MP_TITLE \"\(.*\)\"/\1/" > version.tmp %{__cat} about.c | \ %{__sed} "s/VINE_VERSION/`%{__cat} version.tmp`/" > about.c.tmp %{__cp} -f about.c.tmp about.c popd %{__rm} -f version.h %patch101 -p1 -b .vine
2008/05/04 追記:しちさん(id:ats7)にお願いしまして,self-build-mplayer-1.0-1.rc2vl4.i386.rpm の更新のときに,gmplayer-add-flv-extension.patch と gmplayer-about-vine.patch を取り込んで頂きました.
そのときに gmplayer-about-vine.patch を簡単にして下さいました.ありがとうございます.
--- MPlayer-1.0rc2/gui/mplayer/gtk/about.c.vine 2007-10-08 04:49:27.000000000 +0 900 +++ MPlayer-1.0rc2/gui/mplayer/gtk/about.c 2008-05-02 10:42:42.000000000 +0 900 @@ -1,4 +1,5 @@ +#include "version.h" #include "app.h" #include "config.h" #include "help_mp.h" @@ -90,7 +91,9 @@ #else gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, #endif - "\n" + "\n" + MP_TITLE "\n" + "\n" MSGTR_ABOUT_UHU " (http://www.uhulinux.hu/)\n" "\n"