Mercurial > mplayer.hg
changeset 4659:31265995cc3a
Place holder for registering modules options
author | albeu |
---|---|
date | Mon, 11 Feb 2002 11:46:27 +0000 |
parents | 93d562ad1c22 |
children | 25b2a036aee7 |
files | Makefile mp-opt-reg.c mplayer.c |
diffstat | 3 files changed, 22 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Feb 11 11:44:50 2002 +0000 +++ b/Makefile Mon Feb 11 11:46:27 2002 +0000 @@ -29,7 +29,7 @@ SRCS_COMMON = cyuv.c adpcm.c xacodec.c cpudetect.c mp_msg.c ac3-iec958.c dec_audio.c dec_video.c msvidc.c cinepak.c fli.c qtrle.c codec-cfg.c cfgparser.c my_profile.c RTjpegN.c minilzo.c nuppelvideo.c spudec.c playtree.c playtreeparser.c asxparser.c qtsmc.c ducktm1.c roqav.c qtrpza.c SRCS_MENCODER = mencoder.c $(SRCS_COMMON) libao2/afmt.c divx4_vbr.c libvo/aclib.c libvo/img_format.c libvo/osd.c -SRCS_MPLAYER = mplayer.c $(SRCS_COMMON) find_sub.c subreader.c lirc_mp.c mixer.c vobsub.c +SRCS_MPLAYER = mplayer.c $(SRCS_COMMON) find_sub.c subreader.c lirc_mp.c mixer.c vobsub.c mp-opt-reg.c OBJS_MENCODER = $(SRCS_MENCODER:.c=.o) OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mp-opt-reg.c Mon Feb 11 11:46:27 2002 +0000 @@ -0,0 +1,18 @@ + +#include "config.h" +#include <stdlib.h> +#include <stdio.h> +#include "cfgparser.h" + +#ifdef HAVE_NEW_INPUT +extern void mp_input_register_options(m_config_t* cfg); +#endif + +void +mp_register_options(m_config_t* cfg) { + +#ifdef HAVE_NEW_INPUT + mp_input_register_options(cfg); +#endif + +}
--- a/mplayer.c Mon Feb 11 11:44:50 2002 +0000 +++ b/mplayer.c Mon Feb 11 11:46:27 2002 +0000 @@ -391,6 +391,8 @@ //extern void write_avi_header_1(FILE *f,int fcc,float fps,int width,int height); +extern void mp_register_options(m_config_t* cfg); + #include "mixer.h" #include "cfg-mplayer.h" @@ -525,6 +527,7 @@ mconfig = m_config_new(playtree); m_config_register_options(mconfig,mplayer_opts); // TODO : add something to let modules register their options + mp_register_options(mconfig); parse_cfgfiles(mconfig);