[vlc-devel] commit: Fix deadlock, do not jump out of cleanup context ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Dec 10 21:28:09 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Dec 10 22:27:24 2008 +0200| [1042260ddac499c26cd2fa205ab7359d95fe6dc7] | committer: Rémi Denis-Courmont 

Fix deadlock, do not jump out of cleanup context

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

 modules/stream_filter/decomp.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/stream_filter/decomp.c b/modules/stream_filter/decomp.c
index d6b9911..3228616 100644
--- a/modules/stream_filter/decomp.c
+++ b/modules/stream_filter/decomp.c
@@ -102,9 +102,7 @@ static void *Thread (void *data)
 
         len = stream_Read (stream->p_source, buf, bufsize);
         vlc_restorecancel (canc);
-
-        if (len <= 0)
-            break;
+        error = len <= 0;
 
         for (ssize_t i = 0, j; i < len; i += j)
         {




More information about the vlc-devel mailing list