libvlc_playlist_get_media_instance(): raise an exception when there is no input,...
authorRafaël Carré <funman@videolan.org>
Sun, 30 Sep 2007 22:55:35 +0000 (22:55 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 30 Sep 2007 22:55:35 +0000 (22:55 +0000)
src/control/playlist.c

index 4d453af..d90df67 100644 (file)
@@ -225,9 +225,11 @@ libvlc_media_instance_t * libvlc_playlist_get_media_instance(
                             p_instance, PL->p_input, p_e );
     }
     else
+    {
         /* no active input */
         p_mi = NULL;
-
+        libvlc_exception_raise( p_e, "No active input" );
+    }
     vlc_mutex_unlock( &PL->object_lock );
 
     return p_mi;