rc: fix potential use-after-free

This commit is contained in:
Rémi Denis-Courmont 2019-05-28 19:45:25 +03:00
parent a862cfbdab
commit 60eb593c18
1 changed files with 1 additions and 1 deletions

View File

@ -634,8 +634,8 @@ static void PlayerGetTitle(intf_thread_t *intf)
vlc_player_Lock(player);
title = vlc_player_GetSelectedTitle(player);
vlc_player_Unlock(player);
msg_print(intf, "%s", (title != NULL) ? title->name : "");
vlc_player_Unlock(player);
}
static void PlayerVoutSnapshot(intf_thread_t *intf)