[MPlayer-dev-eng] [PATCH] tv config in file (load/save)

Ötvös Attila oattila at chello.hu
Tue Sep 11 23:20:48 CEST 2007


2007. szeptember 11. 14.00 dátummal Vladimir Voroshilov ezt írta:
>
> I'am talking about the same.
> Obviously you need mixing. I just want to say that if you put mixing
> routine into stream_tv.c, you'll need no additional structure definitions,
> you will have two variables with the same type: first with default values
> and second with parsed config/command.
> Your parsing code should fill third variable (of the same type!) with
> values from tv.conf.
> After that you canm mix values as described above.
>

Hi Vladimir Voroshilov!

My modfied:

tvconfig.patch:
- remove tvconfig/notvconfig config option
- remove tvconfigsave/notvconfigsave config option
- remove tvconfigfilesave config option
- remove channel_priv_t
- remove parse_channels_priv()
- remove mix_tv_param()
- remove empty_tv_defaults[]

- change tv option: tvconfigfile -> config=yes|no|filename
- expand tv_channels_t (brightness,volume,norm, etc, but now not used)
- add default_tv_param(): set default value if unset

option.patch:
I add m_option_isunset() to m_option.c (and m_struct.c):
The m_option_isunset() return true if value not setted.

I updated tvconfig-doc.patch

Best regard.
Attila

PS.: I sorry if I mistook what you sent me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: option.patch
Type: text/x-diff
Size: 7556 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070911/f8a1adfd/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tvconfig.patch
Type: text/x-diff
Size: 36456 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070911/f8a1adfd/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tvconfig-doc.patch
Type: text/x-diff
Size: 831 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070911/f8a1adfd/attachment-0002.patch>


More information about the MPlayer-dev-eng mailing list