From 9db0c118d3acee07880472e590dc0a25e5b51be6 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Mon, 31 Mar 2008 06:19:29 +0300 Subject: Start of new option system First part of option restructuring. The aim is to move option values from a huge number of separate globals to a single non-global struct. This part adds some support for parsing option values into such struct instances, and moves one example option (fixed-vo) to the struct. --- mencoder.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mencoder.c') diff --git a/mencoder.c b/mencoder.c index c5e0d682fa..3e86b9e1cc 100644 --- a/mencoder.c +++ b/mencoder.c @@ -90,6 +90,10 @@ #endif #include "libmpcodecs/ae.h" +#include "options.h" + +MPOpts opts; + int vo_doublebuffering=0; int vo_directrendering=0; int vo_config_count=1; @@ -420,7 +424,7 @@ user_correct_pts = 0; mp_msg_init(); // Create the config context and register the options - mconfig = m_config_new(); + mconfig = m_config_new(&opts); m_config_register_options(mconfig,mencoder_opts); // Preparse the command line -- cgit v1.2.3