Skip to content
Snippets Groups Projects
Commit 3a3214a1 authored by Pierre Lamot's avatar Pierre Lamot Committed by Steve Lhomme
Browse files

hotkey: ensure we have a media before requesting OSD

parent fa9f010c
No related branches found
No related tags found
1 merge request!3981hotkey: ensure we have a media before requesting OSD
Pipeline #367666 passed with stage
in 19 minutes and 45 seconds
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment