[vlc-commits] lua: use inflate rather than decomp stream filter

Rémi Denis-Courmont git at videolan.org
Fri Sep 9 08:39:44 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep  9 09:36:09 2016 +0300| [268a46a0559c11abc95d32b7e26a706934d53623] | committer: Rémi Denis-Courmont

lua: use inflate rather than decomp stream filter

The inflate filter supports deflate in addition to gzip, and works on
all platforms.

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

 modules/lua/libs/stream.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/lua/libs/stream.c b/modules/lua/libs/stream.c
index e3092b7..2cfd644 100644
--- a/modules/lua/libs/stream.c
+++ b/modules/lua/libs/stream.c
@@ -86,13 +86,13 @@ static int vlclua_stream_new( lua_State *L )
     const char * psz_url = luaL_checkstring( L, 1 );
     stream_t *p_stream = vlc_stream_NewMRL( p_this, psz_url );
 
-    /* XXX: For hysterical raisins, append one stream decompression filter
-     * automatically (if applicable). */
+    /* XXX: For hysterical raisins, append one inflate decompression stream
+     * filter automatically (if applicable). */
     if( p_stream != NULL )
     {
-        stream_t *uncompressed = vlc_stream_FilterNew( p_stream, "decomp" );
-        if( uncompressed != NULL )
-            p_stream = uncompressed;
+        stream_t *inflated = vlc_stream_FilterNew( p_stream, "inflate" );
+        if( inflated != NULL )
+            p_stream = inflated;
     }
     return vlclua_stream_new_inner( L, p_stream );
 }



More information about the vlc-commits mailing list