Place holder for registering modules options

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4660 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2002-02-11 11:46:27 +00:00
parent 30c218a61b
commit 2c0c39aa69
3 changed files with 22 additions and 1 deletions

View File

@ -29,7 +29,7 @@ INSTALL = install
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)

18
mp-opt-reg.c Normal file
View File

@ -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
}

View File

@ -391,6 +391,8 @@ void exit_sighandler(int x){
//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 @@ vo_tune_info_t vtune;
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);