# include "config.h"
#endif
+#include <assert.h>
+
#include <vlc_common.h>
#include <vlc_es.h>
#include <vlc_input.h>
p_sys->p_input = p_input_thread;
var_AddCallback( p_input_thread, "intf-event", InputEvent, p_playlist );
+ var_SetAddress( p_playlist, "input-current", p_input_thread );
+
if( input_Start( p_sys->p_input ) )
{
vlc_object_release( p_input_thread );
free( psz_arturl );
free( psz_name );
}
-
+ /* FIXME: this is not safe !!*/
PL_UNLOCK;
var_SetAddress( p_playlist, "item-current", p_input );
PL_LOCK;