[vlc-commits] commit: Fix libvlc video functions when there is no input (fixes #3812) ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sun Jun 27 16:12:41 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun 27 17:09:24 2010 +0300| [e972e893dbeda78a0f407f17e3926d77291ffc84] | committer: Rémi Denis-Courmont 

Fix libvlc video functions when there is no input (fixes #3812)
(cherry picked from commit 67bc4a20d784131ce7de8292c60c0829f4784735)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=e972e893dbeda78a0f407f17e3926d77291ffc84
---

 src/control/video.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/control/video.c b/src/control/video.c
index 74f449e..da3bab9 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -48,7 +48,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))



More information about the vlc-commits mailing list