[MPlayer-dev-eng] [PATCH] DVB: look for channels.conf in confdir

Guillaume LECERF foxcore at gmail.com
Mon Mar 3 17:14:29 CET 2008


Hi all,

I noticed that the dvb code looks for channels.conf only using get_path().
I'd like it to be able to also look for a system wide channels.conf
file in MPLAYER_CONFDIR.
This way, for an embedded system like geexbox, we can put all *.conf
in /etc/mplayer and specify --confdir=/etc/mplayer when compiling.

So I attached 2 patches with 2 different behaviors :
- if channels.conf is not found with get_path(), try to load the
system wide one.
- if a system wide channels.conf is not found, try with get_path().

Nico, what looks best to you ?

-- 
Guillaume LECERF
GeeXboX developer - www.geexbox.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb1.diff
Type: text/x-vhdl
Size: 494 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080303/43f1df3c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb2.diff
Type: text/x-vhdl
Size: 478 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080303/43f1df3c/attachment-0001.bin>


More information about the MPlayer-dev-eng mailing list