Commit 9d3f8785 authored by Eric Petit's avatar Eric Petit

playlist/view.c: sanity check (closes #176)

parent 423003a5
......@@ -896,6 +896,13 @@ playlist_item_t *playlist_RecursiveFindPrev( playlist_t *p_playlist,
/* Go up one level */
p_parent_parent = playlist_FindDirectParent( p_playlist,
p_parent, i_view );
if( p_parent_parent == NULL )
{
#ifdef PLAYLIST_DEBUG
msg_Dbg( p_playlist, "Mmmh, couldn't find parent" );
#endif
return NULL;
}
return playlist_RecursiveFindPrev( p_playlist, i_view,p_root,
p_parent, p_parent_parent );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment