[vlc-devel] [PATCH 1/3] access: http: only warn on deflate errors

Francois Cartegnie fcvlcdev at free.fr
Wed Apr 24 22:20:07 CEST 2013


---
 modules/access/http.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index cb63f4a..5fbd461 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -907,7 +907,8 @@ static ssize_t ReadCompressed( access_t *p_access, uint8_t *p_buffer,
         p_sys->inflate.stream.next_out = p_buffer;
 
         i_ret = inflate( &p_sys->inflate.stream, Z_SYNC_FLUSH );
-        msg_Warn( p_access, "inflate return value: %d, %s", i_ret, p_sys->inflate.stream.msg );
+        if ( i_ret != Z_OK && i_ret != Z_STREAM_END )
+            msg_Warn( p_access, "inflate return value: %d, %s", i_ret, p_sys->inflate.stream.msg );
 
         return i_len - p_sys->inflate.stream.avail_out;
     }
-- 
1.7.9




More information about the vlc-devel mailing list