summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-03-31 06:19:29 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:41:05 +0300
commit9db0c118d3acee07880472e590dc0a25e5b51be6 (patch)
treef7b1664d28d5300bde7f863c8d32324a427112d2 /mp_core.h
parentf894294bae1ff9b2c1802a5ae7e73cfdbc26e645 (diff)
downloadmpv-9db0c118d3acee07880472e590dc0a25e5b51be6.tar.bz2
mpv-9db0c118d3acee07880472e590dc0a25e5b51be6.tar.xz
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.
Diffstat (limited to 'mp_core.h')
-rw-r--r--mp_core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mp_core.h b/mp_core.h
index e6149266c2..c40c948114 100644
--- a/mp_core.h
+++ b/mp_core.h
@@ -1,6 +1,7 @@
#ifndef MPLAYER_MP_CORE_H
#define MPLAYER_MP_CORE_H
+#include "options.h"
#include "mp_osd.h"
#include "libao2/audio_out.h"
#include "playtree.h"
@@ -42,6 +43,7 @@
typedef struct MPContext {
+ struct MPOpts opts;
int osd_show_percentage;
int osd_function;
const ao_functions_t *audio_out;
@@ -114,7 +116,6 @@ extern FILE *edl_fd;
extern int file_filter;
// These appear in options list
extern float playback_speed;
-extern int fixed_vo;
extern int forced_subs_only;