From 0bb7fff7d4ba288c0b32d4c7addd49ea59e749c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 30 Jul 2022 18:25:02 +0300 Subject: [PATCH] hotkeys: don't assume "deinterlace-mode" exists Fixes #27179. --- modules/control/hotkeys.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c index 74d32f34f0..c65262a04c 100644 --- a/modules/control/hotkeys.c +++ b/modules/control/hotkeys.c @@ -793,7 +793,10 @@ vout_CycleVariable(vout_thread_t *vout, char const *varname, int vartype, bool next) { vlc_value_t val; - var_Get(vout, varname, &val); + + if (var_Get(vout, varname, &val) != VLC_SUCCESS) + return; + size_t num_choices; vlc_value_t *choices; var_Change(vout, varname, VLC_VAR_GETCHOICES,