playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );
- if( p_playlist == NULL )
+ if( p_playlist == NULL || p_playlist->status.p_item == NULL )
{
return;
}
{
if( [[o_vout_wnd className] isEqualToString: @"VLCWindow"] )
{
- ;[o_vout_wnd updateTitle];
+ [o_vout_wnd updateTitle];
}
}
vlc_object_release( (vlc_object_t *)p_vout );
return;
p_item = p_playlist->status.p_item;
+ if( p_item == NULL ) return;
+
p_temp_item = p_item;
-
while( p_temp_item->i_parents > 0 )
{
[o_array insertObject: [NSValue valueWithPointer: p_temp_item] atIndex: 0];