Commit 564122b4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libvlc_playlist_play: remove exception

parent ae47c1c8
......@@ -82,7 +82,7 @@ VLC_DEPRECATED_API libvlc_drawable_t
*/
/**
* Start playing.
* Start playing (if there is any item in the playlist).
*
* Additionnal playlist item options can be specified for addition to the
* item before it is played.
......
......@@ -42,6 +42,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
VLC_UNUSED(i_id); VLC_UNUSED(i_options); VLC_UNUSED(ppsz_options);
assert( pl );
if( pl->items.i_size == 0 ) RAISEVOID( "Empty playlist" );
if( pl->items.i_size == 0 )
return;
playlist_Control( pl, PLAYLIST_PLAY, false );
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment