+/*****************************************************************************
+ * input_from_playlist: don't forget to release the return value
+ * Also this function should really be available from core.
+ *****************************************************************************/
+static input_thread_t * input_from_playlist ( playlist_t *p_playlist )
+{
+ input_thread_t * p_input;
+
+ PL_LOCK;
+ p_input = p_playlist->p_input;
+ if( p_input )
+ vlc_object_yield( p_input );
+ PL_UNLOCK;
+
+ return p_input;
+}
+