libvlc_playlist_play: remove exception
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 9 Aug 2009 15:22:41 +0000 (18:22 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 9 Aug 2009 15:24:06 +0000 (18:24 +0300)
include/vlc/deprecated.h
src/control/playlist.c

index 649545a..cbb382d 100644 (file)
@@ -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.
index d71e61f..a2ccdc8 100644 (file)
@@ -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 );
 }