summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-02 23:39:53 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-02 23:39:53 +0000
commit0234e8f3c7aa0153a2966470118b4587213d18ec (patch)
tree610050a85af9340288a3b1de1b2bbed0ed80dafe /mencoder.c
parent6a6350bce022cc00aea546819d8dcde3d19d5c20 (diff)
downloadmpv-0234e8f3c7aa0153a2966470118b4587213d18ec.tar.bz2
mpv-0234e8f3c7aa0153a2966470118b4587213d18ec.tar.xz
config file support for mencoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4489 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index f63b615548..946cb2d496 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -206,6 +206,18 @@ static uint8_t* flip_upside_down(uint8_t* dst, const uint8_t* src, int width, in
#include "spudec.h"
#endif
+void parse_cfgfiles( m_config_t* conf )
+{
+ char *conffile;
+ if ((conffile = get_path("mencoder")) == NULL) {
+ mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_GetpathProblem);
+ } else {
+ if (m_config_parse_config_file(conf, conffile) < 0)
+ exit(1);
+ free(conffile);
+ }
+}
+
//---------------------------------------------------------------------------
// mini dummy libvo:
@@ -399,6 +411,8 @@ divx4_param.rc_reaction_ratio = 20;
playtree = play_tree_new();
mconfig = m_config_new(playtree);
m_config_register_options(mconfig,mencoder_opts);
+ // TODO : add something to let modules register their options
+ parse_cfgfiles(mconfig);
if(m_config_parse_command_line(mconfig, argc, argv, envp) < 0) exit(1); // error parsing cmdline
playtree = play_tree_cleanup(playtree);