#include "vlc_playlist.h"
#include "vlc_interaction.h"
-#undef PLAYLIST_DEBUG
-
/*****************************************************************************
* Local prototypes
*****************************************************************************/
/* FIXME : this can be called several times */
if( p_playlist->request.b_request )
{
-#ifdef PLAYLIST_DEBUG
- msg_Dbg(p_playlist, "incoming request - stopping current input" );
-#endif
+ PL_DEBUG( "incoming request - stopping current input" );
/* Stop the existing input */
if( p_playlist->p_input )
{
& PLAYLIST_REMOVE_FLAG )
{
playlist_ItemDelete( p_playlist->status.p_item );
+ if( p_playlist->request.p_item == p_playlist->status.p_item )
+ p_playlist->request.p_item = NULL;
p_playlist->status.p_item = NULL;
}
vlc_mutex_lock( &p_obj->object_lock );
i_activity= var_GetInteger( p_playlist, "activity" );
if( i_activity < 0 ) i_activity = 0;
+ vlc_mutex_unlock( &p_obj->object_lock );
msleep( (i_activity+1) * 1000 );
+ return;
}
-
vlc_mutex_unlock( &p_obj->object_lock );
}