if( playlist_IsEmpty( p_playlist ) )
{
- vlc_object_release( p_playlist );
+ pl_Release( p_playlist );
continue;
}
free( psz_display );
if( p_playlist->status.i_status == PLAYLIST_STOPPED )
{
psz_display = strdup(_("Stop"));
- vlc_object_release( p_playlist );
+ pl_Release( p_playlist );
}
else if( p_playlist->status.i_status == PLAYLIST_PAUSED )
{
psz_display = strdup(_("Pause"));
- vlc_object_release( p_playlist );
+ pl_Release( p_playlist );
}
else
{
p_item = p_playlist->status.p_item;
p_input = p_item->p_input;
+
+ pl_Release( p_playlist );
if( !p_item )
- {
- vlc_object_release( p_playlist );
continue;
- }
-
- vlc_object_release( p_playlist );
mtime_t i_duration = input_item_GetDuration( p_input );
if( i_duration != -1 )