command: fix deref before NULL check

Was accidentally broken in the last global variable removal round.
This commit is contained in:
wm4 2013-04-12 14:34:46 +02:00
parent ed48c657ee
commit 90e57fc266
1 changed files with 1 additions and 1 deletions

View File

@ -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)