if( p_playlist->p_fetcher )
vlc_object_release( p_playlist->p_fetcher );
-#ifndef NDEBUG
- libvlc_priv (p_this->p_libvlc)->p_playlist = NULL; /* pl_Yield() will fail */
-#endif
}
/* Destroy remaining objects */
}
vlc_mutex_lock( &p_playlist->gc_lock );
- /* Remove video outputs when user presses stop: */
- vlc_list_t *list = vlc_list_find( p_playlist->p_libvlc, VLC_OBJECT_VOUT,
- FIND_CHILD );
- if( list != NULL )
- {
- msg_Dbg( p_playlist, "removing %u vout(s)", list->i_count );
- for( int i = 0; i < list->i_count; i++)
- vlc_object_release( list->p_values[i].p_object );
- vlc_list_release( list );
- }
p_playlist->b_cant_sleep = false;
vlc_mutex_unlock( &p_playlist->gc_lock );
}
}
}
+/** Get current playing input.
+ */
+input_thread_t * playlist_CurrentInput( 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;
+}
+
/**
* @}