[MPlayer-dev-eng] [PATCH] -noconfig option

Andrew Savchenko Bircoph at list.ru
Fri Apr 11 16:08:37 CEST 2008


Hello,

Sometimes it is usefull no ignore system and user-specific config 
files and use only command line options. Especially this is 
usefull on debugging or figuring out what is wrong with playback.

Of course, it possible to override all config file options on the 
command line, but with large and rather complicated configs (e.g. 
as mine one) it is a pain. Usually I just temporary rename my 
mplayer.conf or ~/.mplayer/config to somewhat other name, but this 
is incovenient too. 

So I propose a patch which adds appropriate -noconfig command line 
option to both mplayer and mencoder. It will disable config files 
parsing at all.

The first patch adds functionality described above. Note that 
option must be checked before configs parsing in the same way as 
-really-quiet.

The second patch is just cosmetics required after first patch 
applying.

Anyone can figure out that there is some code duplication in 
mplayer.c and mencoder.c. I dislike code duplication, so the third 
patch is intended to fix this by moving common code (related to 
the first patch) from these files to mpcommon.[ch]. This patch 
requires the first patch to be applied.

And finally the fourth patch adds new option description to the 
manual page.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noconfig.patch
Type: text/x-diff
Size: 2198 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080411/301abc9e/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noconfig_cosmetics.patch
Type: text/x-diff
Size: 338 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080411/301abc9e/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noconfig_mpcommon.patch
Type: text/x-diff
Size: 1778 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080411/301abc9e/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noconfig_manual.patch
Type: text/x-diff
Size: 358 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080411/301abc9e/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080411/301abc9e/attachment.pgp>


More information about the MPlayer-dev-eng mailing list