Playlist control: libvlc_playlist_pause added
authorFilippo Carone <littlejohn@videolan.org>
Fri, 31 Mar 2006 09:32:09 +0000 (09:32 +0000)
committerFilippo Carone <littlejohn@videolan.org>
Fri, 31 Mar 2006 09:32:09 +0000 (09:32 +0000)
src/control/playlist.c

index ffdb55e..cb0bbf3 100644 (file)
@@ -75,6 +75,16 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
     }
 }
 
+void libvlc_playlist_pause( libvlc_instance_t *p_instance,
+                           libvlc_exception_t *p_exception )
+{
+    if( playlist_Pause( p_instance->p_playlist ) != VLC_SUCCESS )
+    {
+        libvlc_exception_raise( p_exception, "Empty playlist" );
+    }
+}
+
+
 void libvlc_playlist_stop( libvlc_instance_t *p_instance,
                            libvlc_exception_t *p_exception )
 {