vlc | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Thu Sep 8 19:58:05 2016 +0300| [dcd3a45eb4b1a950ffd4974ca1c5a915481da9bc] | committer: Rémi Denis-Courmont
lua: add decompression stream filter automatically (fixes #17132) This compensates the fact that the HTTP access no longer undoes the Content-Encoding automatically. However, it also affects other access plug-ins, thus changing the behaviour. IMO, Lua scripts should be fixed to call vlc.stream.add_filter (which has existed for 7 years) when they need it. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dcd3a45eb4b1a950ffd4974ca1c5a915481da9bc --- modules/lua/libs/stream.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/lua/libs/stream.c b/modules/lua/libs/stream.c index c0da3c8..e3092b7 100644 --- a/modules/lua/libs/stream.c +++ b/modules/lua/libs/stream.c @@ -85,6 +85,15 @@ static int vlclua_stream_new( lua_State *L ) vlc_object_t * p_this = vlclua_get_this( 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). */ + if( p_stream != NULL ) + { + stream_t *uncompressed = vlc_stream_FilterNew( p_stream, "decomp" ); + if( uncompressed != NULL ) + p_stream = uncompressed; + } return vlclua_stream_new_inner( L, p_stream ); } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits