]> git.sesse.net Git - vlc/blobdiff - src/control/video.c
Fix libvlc video functions when there is no input (fixes #3812)
[vlc] / 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))