From: RĂ©mi Denis-Courmont Date: Sun, 27 Jun 2010 14:09:24 +0000 (+0300) Subject: Fix libvlc video functions when there is no input (fixes #3812) X-Git-Tag: 1.2.0-pre1~6043 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=67bc4a20d784131ce7de8292c60c0829f4784735;p=vlc Fix libvlc video functions when there is no input (fixes #3812) --- 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))