]> git.sesse.net Git - vlc/commitdiff
Fix libvlc video functions when there is no input (fixes #3812)
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 27 Jun 2010 14:09:24 +0000 (17:09 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 27 Jun 2010 14:09:50 +0000 (17:09 +0300)
src/control/video.c

index ea10304fb7a02342e3a3a3531812557f446ca4f5..e0772dc8ddd8f5835bc9e8c740a0da052721c1cc 100644 (file)
@@ -47,7 +47,10 @@ static vout_thread_t **GetVouts( libvlc_media_player_t *p_mi, size_t *n )
 {
     input_thread_t *p_input = libvlc_get_input_thread( p_mi );
     if( !p_input )
+    {
+        *n = 0;
         return NULL;
+    }
 
     vout_thread_t **pp_vouts;
     if (input_Control( p_input, INPUT_GET_VOUTS, &pp_vouts, n))