mirror of https://code.videolan.org/videolan/vlc
rc: fix potential use-after-free
This commit is contained in:
parent
a862cfbdab
commit
60eb593c18
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue