[vlc-commits] [Git][videolan/vlc][master] hotkey: ensure we have a media before requesting OSD

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Jul 27 11:24:47 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
3a3214a1 by Pierre Lamot at 2023-07-27T11:08:43+00:00
hotkey: ensure we have a media before requesting OSD

- - - - -


1 changed file:

- modules/control/hotkeys.c


Changes:

=====================================
modules/control/hotkeys.c
=====================================
@@ -328,7 +328,8 @@ PLAYER_ACTION_HANDLER(Position)
 {
     VLC_UNUSED(action_id); VLC_UNUSED(intf);
     vout_thread_t *vout = vlc_player_vout_Hold(player);
-    if (vout_OSDEpg(vout, vlc_player_GetCurrentMedia(player)))
+    input_item_t* item = vlc_player_GetCurrentMedia(player);
+    if (item && vout_OSDEpg(vout, item))
         vlc_player_DisplayPosition(player);
     vout_Release(vout);
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3a3214a13315b9bc805e258116568cea7e653b84

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3a3214a13315b9bc805e258116568cea7e653b84
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