[vlc-commits] [Git][videolan/vlc][master] hotkeys: don't assume "deinterlace-mode" exists

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Tue Aug 2 18:03:33 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
0bb7fff7 by Rémi Denis-Courmont at 2022-08-02T17:41:55+00:00
hotkeys: don't assume "deinterlace-mode" exists

Fixes #27179.

- - - - -


1 changed file:

- modules/control/hotkeys.c


Changes:

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



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0bb7fff7d4ba288c0b32d4c7addd49ea59e749c6

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0bb7fff7d4ba288c0b32d4c7addd49ea59e749c6
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list