summaryrefslogtreecommitdiffstats
path: root/command.c
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 /command.c
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 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index 446198440c..1a7fd635da 100644
--- a/command.c
+++ b/command.c
@@ -903,7 +903,7 @@ static int mp_property_video(m_option_t * prop, int action, void *arg,
|| (video_id > -1 && mpctx->demuxer->video->id != current_id
&& current_id != -2))
uninit_player(INITIALIZED_VCODEC |
- (fixed_vo && video_id != -2 ? 0 : INITIALIZED_VO));
+ (mpctx->opts.fixed_vo && video_id != -2 ? 0 : INITIALIZED_VO));
if (video_id > -1 && mpctx->demuxer->video->id != current_id) {
sh_video_t *sh2;
sh2 = mpctx->demuxer->v_streams[mpctx->demuxer->video->id];