[vlc-devel] commit: Fix potential infinite loop with multiple vouts (fixes: #2832) ( Rémi Denis-Courmont )

git version control git at videolan.org
Fri Jun 5 16:56:38 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jun  5 17:55:09 2009 +0300| [2fde438feffdf63a66252d4725613ad32239ff0f] | committer: Rémi Denis-Courmont 

Fix potential infinite loop with multiple vouts (fixes: #2832)

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

 modules/video_output/drawable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/drawable.c b/modules/video_output/drawable.c
index ec1c71b..4c4b476 100644
--- a/modules/video_output/drawable.c
+++ b/modules/video_output/drawable.c
@@ -170,7 +170,7 @@ static void Close (vlc_object_t *obj)
     }
     do
         used[n] = used[n + 1];
-    while (used[n + 1] != NULL);
+    while (used[++n] != NULL);
 
     if (n == 0)
       /* should not be needed (var_Destroy...) but better safe than sorry: */




More information about the vlc-devel mailing list