[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:10:50 CEST 2010


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

Fix libvlc video functions when there is no input (fixes #3812)

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

 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 ea10304..e0772dc 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))



More information about the vlc-commits mailing list