]> git.sesse.net Git - vlc/commit
* ALL: changes to the playlist_Add() and VLC_AddTarget() proto to include a list...
authorGildas Bazin <gbazin@videolan.org>
Wed, 23 Jul 2003 01:13:48 +0000 (01:13 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 23 Jul 2003 01:13:48 +0000 (01:13 +0000)
commiteb505a2f6d699f8aa9a1774896c1d3c4f2077899
treeb62f882d6751c0eba3c6589eebc92d5eb5664714
parent19e6278e3e9cb384f37073dcd1c237a30d6da3d7
* ALL: changes to the playlist_Add() and VLC_AddTarget() proto to include a list of options associated with the input.
* src/input/input.c: parses the input options list before spawning the input and create object variables for these options. Options are of the form "[no[-]]foo[=bar]" where foo is the option name and bar is its value.
* src/input/input.c, src/input/input_dec.c: use the object var api to get the value of the "sout", "sout-video" and "sout-audio" options.
* src/libvlc.c: extended the command line parser to parse input options. Input options must always follow the input they apply to and begin with a ':'.

All these changes allow you to specify input specific options.
eg: ./vlc --no-sout-audio yourvideo.mpeg :sout=udp/http::8080 :sout-audio yourvideo2.mpeg
Here the ":sout" option will only apply to yourvideo.mpeg.
"--no-sout-audio" will be a global option so will apply to yourvideo2.mpeg but the global behaviour is overriden by ":sout-audio" for yourvideo.mpeg.

TODO: - the interfaces need to be modified to benefit from the new playlist_Add() api.
      - only "sout", "sout-video", "sout-audio" implemented for now. To make it work with other options, we need to get rid of all the config_GetFoo() and replace them with var_Create()/var_Change()/var_Get().
30 files changed:
include/configuration.h
include/vlc/vlc.h
include/vlc_playlist.h
modules/access/http.c
modules/access/slp.c
modules/control/corba/corba.c
modules/control/http.c
modules/control/rc/rc.c
modules/demux/m3u.c
modules/demux/mp4/mp4.c
modules/gui/beos/VlcWrapper.cpp
modules/gui/familiar/callbacks.c
modules/gui/gtk/open.c
modules/gui/gtk/playlist.c
modules/gui/kde/interface.cpp
modules/gui/macosx/applescript.m
modules/gui/macosx/playlist.m
modules/gui/qt/intf.cpp
modules/gui/skins/src/vlcproc.cpp
modules/gui/wxwindows/dialogs.cpp
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/open.cpp
modules/misc/sap.c
mozilla/vlcpeer.cpp
mozilla/vlcshell.cpp
src/input/input.c
src/input/input_dec.c
src/libvlc.c
src/misc/configuration.c
src/playlist/playlist.c