[vlc-commits] access: http: only warn on deflate errors
Francois Cartegnie
git at videolan.org
Thu Apr 25 14:13:15 CEST 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 24 22:15:54 2013 +0200| [a5d592c8e12916e76c78f2d2f434d759f780f4de] | committer: Francois Cartegnie
access: http: only warn on deflate errors
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a5d592c8e12916e76c78f2d2f434d759f780f4de
---
modules/access/http.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
}
More information about the vlc-commits
mailing list