François Cartegnie
9856c789ec
stream_extractor: store and forward volume information
Also propagates missing volume information to directories listing.
Until now it was assumed archives only had direcoty info in the first
volume.
3 years ago
Steve Lhomme
5363279805
remove the $Id$ in the source code
7 years ago
Lukas Bergdoll
0e0b070c26
lua: replace deprecated luaL_checkint with luaL_checkinteger
Acked-by: Shaleen Jain <shaleen@jain.sh>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
8 years ago
Hugo Beauzée-Luyssen
502f5c0660
lua: streams: Expose seek & getsize member functions
8 years ago
Hugo Beauzée-Luyssen
7eda8499ef
lua: stream: Fix leak on error
8 years ago
Rémi Denis-Courmont
69389c1c50
demux: check for pf_readdir directly
Since we anyway test for pf_read and pf_block, and for pf_demux, we
might as well check for pf_readdir being non-NULL directly.
Maybe someone wants to add a VLC stream equivalent for fstat(),
replacing those NULL tests and STREAM_GETSIZE but that is left for
future study.
8 years ago
Hugo Beauzée-Luyssen
afc91404e4
lua: Allow the content of a (virtual) directory to be listed
9 years ago
Hugo Beauzée-Luyssen
7b0aedd306
lua: stream: Use vlc_stream_NewMRL
This way we can open archive, or other path needing a stream extractor
9 years ago
Rémi Denis-Courmont
578eff50c1
Revert "lua: add decompression stream filter automatically ( fixes #17132 )"
This reverts commit dcd3a45eb4 .
9 years ago
Rémi Denis-Courmont
603cbf291c
Revert "lua: use inflate rather than decomp stream filter"
This reverts commit 268a46a055 .
9 years ago
Filip Roséen
e4fbdcebeb
stream: rename vlc_stream_NewMRL to vlc_stream_NewURL
The function does not open MRLs, as correctly described in its
documentation, as such it is rather unfortunate that its name uses MRL
instead of URL (especially given that it cannot handle MRLs).
These changes are simply renaming all occurrences of the function, so
that the behavior of the function is properly reflected by its name.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
10 years ago
Rémi Denis-Courmont
268a46a055
lua: use inflate rather than decomp stream filter
The inflate filter supports deflate in addition to gzip, and works on
all platforms.
10 years ago
Rémi Denis-Courmont
dcd3a45eb4
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.
10 years ago
Rémi Denis-Courmont
520b13a2ca
lua: use luaL_checkint() where applicable
10 years ago
Rémi Denis-Courmont
312d198438
stream: stream_ -> vlc_stream_
10 years ago
Ludovic Fauvet
2468da50f6
lua: replace deprecated functions
10 years ago
Rémi Denis-Courmont
c8961f3a00
Remove unneeded #include <vlc_aout.h>
14 years ago
Kelly Anderson
c0f44d25b3
Consolidate lua includes in vlc.h
So lua 5.2 compatibility declarations can be made in one place.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
14 years ago
Rémi Duraffort
b0d7c77b11
lua: return nil when the stream or file ends ( fix #4876 )
15 years ago
Jean-Baptiste Kempf
61147a769e
Move /modules/misc/lua/ to /modules/lua
Lua is an important part of VLC and abusing misc has gone a bit too far...
15 years ago
Antoine Cellerier
4822a79c71
Change vlc.stream() and vlc.memory_stream() error reporting to behave like lua's io.open() or loadfile() functions.
16 years ago
Antoine Cellerier
af632723ca
Kill warning.
16 years ago
Antoine Cellerier
9794aa0652
Add lua wrapper for memory stream constructor.
16 years ago
Rémi Denis-Courmont
d601e4ed29
Split file path functions out of vlc_charset.h into vlc_fs.h
16 years ago
Jean-Philippe André
9304b7db2b
Lua: vlc.stream has a new function: addfilter
When used with no argument (or nil), it adds all automatic stream
filters. When used with an argument, tries to insert the specified
filter only.
17 years ago
Antoine Cellerier
326015842f
Add a global documentation for all the Lua modules.
18 years ago
Antoine Cellerier
95addd5738
Implement Lua objects in the C code directly. Fix most type checks. Move every thing arround.
18 years ago