Fix deadlock, do not jump out of cleanup context
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 10 Dec 2008 20:27:24 +0000 (22:27 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 10 Dec 2008 20:27:24 +0000 (22:27 +0200)
modules/stream_filter/decomp.c

index d6b9911..3228616 100644 (file)
@@ -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)
         {