Skip to content

Commit a11e486

Browse files
committed
vo.c: don't check that driver->control is present
This check is unnecessary because vo->driver->control is already used without checking for its presence everywhere else in vo.c, and every driver specifies a control callback.
1 parent 2e83b3b commit a11e486

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

video/out/vo.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,10 @@ static void update_opts(void *p)
240240

241241
if (m_config_cache_update(vo->opts_cache)) {
242242
read_opts(vo);
243-
if (vo->driver->control) {
244-
vo->driver->control(vo, VOCTRL_VO_OPTS_CHANGED, NULL);
245-
// "Legacy" update of video position related options.
246-
// Unlike VOCTRL_VO_OPTS_CHANGED, often not propagated to backends.
247-
vo->driver->control(vo, VOCTRL_SET_PANSCAN, NULL);
248-
}
243+
vo->driver->control(vo, VOCTRL_VO_OPTS_CHANGED, NULL);
244+
// "Legacy" update of video position related options.
245+
// Unlike VOCTRL_VO_OPTS_CHANGED, often not propagated to backends.
246+
vo->driver->control(vo, VOCTRL_SET_PANSCAN, NULL);
249247
}
250248
}
251249

0 commit comments

Comments
 (0)