From 67bc4a20d784131ce7de8292c60c0829f4784735 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 27 Jun 2010 17:09:24 +0300 Subject: [PATCH] Fix libvlc video functions when there is no input (fixes #3812) --- src/control/video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/control/video.c b/src/control/video.c index ea10304fb7..e0772dc8dd 100644 --- a/src/control/video.c +++ b/src/control/video.c @@ -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)) -- 2.39.2