hotkeys: don't assume "deinterlace-mode" exists

Fixes #27179.
This commit is contained in:
Rémi Denis-Courmont 2022-07-30 18:25:02 +03:00 committed by Hugo Beauzée-Luyssen
parent 21819cb0cd
commit 0bb7fff7d4
1 changed files with 4 additions and 1 deletions

View File

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