summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
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)