mirror of https://code.videolan.org/videolan/vlc
* modules/gui/wxwindows/playlist.cpp: sanity check to avoid crashes (doesn't explain why the check is triggered though).
This commit is contained in:
parent
7f95e259d8
commit
210b6b3366
|
@ -497,13 +497,11 @@ void Playlist::UpdateTreeItem( playlist_t *p_playlist, wxTreeItemId item )
|
|||
{
|
||||
if( ! item.IsOk() ) return;
|
||||
|
||||
playlist_item_t *p_item =
|
||||
((PlaylistItem *)treectrl->GetItemData( item ))->p_item;
|
||||
wxTreeItemData *p_data = treectrl->GetItemData( item );
|
||||
if( !p_data ) return;
|
||||
|
||||
if( !p_item )
|
||||
{
|
||||
return;
|
||||
}
|
||||
playlist_item_t *p_item = ((PlaylistItem *)p_data)->p_item;
|
||||
if( !p_item ) return;
|
||||
|
||||
wxString msg;
|
||||
wxString duration = wxU( "" );
|
||||
|
|
Loading…
Reference in New Issue