[MPlayer-dev-eng] [PATCH] Add support for directory-wide configuration overrides
Christian P. Schmidt
schmidt at digadd.de
Sun Aug 30 12:26:10 CEST 2009
Hi all,
At the moment mplayer only supports configuration overrides for single
files (by appending .conf to the filename and searching in the default
configuration directory, or optionally in the same directory as the file.
The attached patch searches for an additional mplayer.conf in the same
directory as the files and loads it if it exists, depending on the
-use-filedir-conf option.
As for the patch itself, it's pretty straightforward. Only questionable
thing is the use of the libgen.h header for the dirname function without
checking. However this header conforms to POSIX.1-2001 (see man 3
dirname), so I don't think it's an issue.
Regards,
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dirwide-mplayer-conf.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090830/ecbd8601/attachment.asc>
More information about the MPlayer-dev-eng
mailing list