summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-12 14:34:46 +0200
committerwm4 <wm4@nowhere>2013-04-12 14:34:46 +0200
commit90e57fc266434a94966c95d8b79da82a5d088c66 (patch)
tree4b4b7ae49a51de7512087d44e2cdf60331eea1f0 /core
parented48c657eefa8d98f421de39a607aa0072d84878 (diff)
downloadmpv-90e57fc266434a94966c95d8b79da82a5d088c66.tar.bz2
mpv-90e57fc266434a94966c95d8b79da82a5d088c66.tar.xz
command: fix deref before NULL check
Was accidentally broken in the last global variable removal round.
Diffstat (limited to 'core')
-rw-r--r--core/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/command.c b/core/command.c
index 095e50f4a2..6a1c868ee1 100644
--- a/core/command.c
+++ b/core/command.c
@@ -851,9 +851,9 @@ static int mp_property_fullscreen(m_option_t *prop,
void *arg,
MPContext *mpctx)
{
- struct mp_vo_opts *opts = mpctx->video_out->opts;
if (!mpctx->video_out)
return M_PROPERTY_UNAVAILABLE;
+ struct mp_vo_opts *opts = mpctx->video_out->opts;
if (action == M_PROPERTY_SET) {
if (opts->fs == !!*(int *) arg)