[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:25 CEST 2009


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

Fix potential infinite loop with multiple vouts (fixes: #2832)
(cherry picked from commit 42245ec5709d85151bdd82a1e806ab68e88aad71)

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

 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