[MPlayer-dev-eng] [PATCH] Allow loading config per stream type.

Zuxy Meng zuxy.meng at gmail.com
Fri Jan 4 06:13:26 CET 2008


Hi,

2008/1/4, Ulion <ulion2002 at gmail.com>:
> 2008/1/4, Benjamin Zores <ben at geexbox.org>:
> > Hi,
> >
> > MPlayer currently allows having a specific config per file (i.e.
> > myfile.avi.conf is used when myfile.avi is played).
> >
> > Attached patch does the same per stream
> >   => /etc/mplayer/tv.conf for tv://
> >   => /etc/mplayer/dvd.conf for dvd://
> >   => ...
> >
> > This may help having some options options you want to be defined for
> > some stream type (deinterlacing filters, scalers, whatever ...) and do
> > not want to have for other types.
> >
> > FWIK it's not possible today with monolitic mplayer.conf file.
> >
> > Is attached patch ok for this ?
>
> +       snprintf (cfg, strlen (file) - strlen (str) + 1, file);
>
> str - file + 1

sizeof(cfg) IMHO.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6



More information about the MPlayer-dev-eng mailing list