mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 03:06:28 +01:00
command: fix deref before NULL check
Was accidentally broken in the last global variable removal round.
This commit is contained in:
parent
ed48c657ee
commit
90e57fc266
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user