1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

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

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,