Rémi Denis-Courmont
119776dc40
include: remove <vlc_aout.h> from <vlc_playlist.h>
8 years ago
Steve Lhomme
04db84cd9c
modules: replace use of 1000000 on time values by CLOCK_FREQ
Modified-by: Thomas Guillem <thomas@gllm.fr>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
8 years ago
Romain Vimont
ff2901aff3
core: remove global *_sys_t typedefs
Do not declare *_sys_t typedefs globally in vlc_common.h. Instead,
declare them locally in each module that provides a definition.
This paves the way to move C++ definitions into anonymous namespaces in
order to respect C++ ODR.
The picture_resource_t and sout_stream_id_sys_t typedefs will be handled
separately, since they require specific additional changes.
See #18033
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
Rémi Denis-Courmont
776811e9f2
config: remove advanced from add_password()
8 years ago
Hugo Beauzée-Luyssen
502f5c0660
lua: streams: Expose seek & getsize member functions
8 years ago
Hugo Beauzée-Luyssen
987952962f
lua: io: Add a vlc.io.unlink function
To be able to delete files using an utf8 path
8 years ago
Hugo Beauzée-Luyssen
36f95c6175
lua: io: Fix typo in usage error message
8 years ago
Hugo Beauzée-Luyssen
4b4b2df3df
lua: io: Don't swallow EEXIST errors
8 years ago
Hugo Beauzée-Luyssen
f70881d160
lua: Expose a minimal set of errno values
8 years ago
Hugo Beauzée-Luyssen
dbafe08dfa
lua: io: Simplify readdir
8 years ago
Francois Cartegnie
0151a4fd9f
lua: io: fix build with recent lua
8 years ago
Hugo Beauzée-Luyssen
086a2838eb
lua: io: Allow files to be explicitely closed
And add a runtime check to match lua's io package behavior
8 years ago
Hugo Beauzée-Luyssen
c0b1fbb0b8
lua: libs: Add a basic directory listing functionnality
8 years ago
Hugo Beauzée-Luyssen
7a6e3c9c3d
Revert "lua: Add a function to convert to the current codepage"
This reverts commit fdd3d58eaf .
8 years ago
Hugo Beauzée-Luyssen
e6d9d25ef9
lua: libs: Provide a basic io module replacement
8 years ago
Hugo Beauzée-Luyssen
50f61974a2
lua: libs: Add a vlc.io and move mkdir there
8 years ago
Hugo Beauzée-Luyssen
3cf17f4cc2
Revert "lua: extensions: Expose misc namespace"
This reverts commit 7bbc232c69 .
The commit was a revert of 52d4b4bb1c
8 years ago
Hugo Beauzée-Luyssen
7bbc232c69
lua: extensions: Expose misc namespace
8 years ago
Hugo Beauzée-Luyssen
67ed23cef3
lua: Expose a mkdir function
To avoid using os.execute...
8 years ago
Hugo Beauzée-Luyssen
fdd3d58eaf
lua: Add a function to convert to the current codepage
This will help VLSub handle non ascii path on windows
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
27852dd4c2
lua: cli: Fix non-ascii character input
refs #19874
(cherry picked from commit 1f1291aedc994dc218bfc5b9ab3ba0a32c19909b)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
8 years ago
Hugo Beauzée-Luyssen
e95939e55b
lua: console: Fix output of non ascii characters on win32
refs #19874
(cherry picked from commit 0720cec581ae3cd6228edd8d6567ad5b30910027)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
8 years ago
Rémi Denis-Courmont
c6be2331fa
lua: install luac files how Automake intends
Automake only allows DATA target into architecture-independent data
directories. So mark Lua byte-code files as SCRIPTS, which they kinda
are anyway.
8 years ago
Rémi Denis-Courmont
477d18c723
Replace config_Get(Data|Lib)Dir() with config_GetSysDir()
8 years ago
Rémi Denis-Courmont
ca621cd7f7
config: rename VLC_DATA_DIR to VLC_USERDATA_DIR
...to avoid confusion going forward. The name matches the VLC Lua name.
8 years ago
Rémi Denis-Courmont
52341c8b3d
config: remove unused config_PutPsz() parameter
8 years ago
Rémi Denis-Courmont
d996d4fe47
config: remove unused config_PutFloat() parameter
8 years ago
Rémi Denis-Courmont
0b87c144e9
config: remove unused config_PutInt() parameter
8 years ago
Rémi Denis-Courmont
3c0909d8a0
config: remove unused config_GetPsz() parameter
8 years ago
Rémi Denis-Courmont
2c384e37cb
config: remove unused config_GetFloat() parameter
8 years ago
Rémi Denis-Courmont
e3f48bb7c3
config: remove unused config_GetInt() parameter
8 years ago
Rémi Denis-Courmont
737e99f960
stream filter: increase priorities
This increases the priority of every stream filter with non-zero
priority by 300. The point is to make those priorities higher than any
existing demux priority (to merge the two capabilities later on).
8 years ago
Pierre Lamot
e5bc7ca672
lua: close lua state after deactivating extension
fix : #19509
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
Hugo Beauzée-Luyssen
6f3d97f989
lua: Don't use NULL script directories
8 years ago
Rémi Denis-Courmont
272e0c47f8
lua: don't scan same directory twice
8 years ago
Rémi Denis-Courmont
c272f61452
Lua: look for scripts in $(pkglibdir) (refs #19324 )
Add $(pkglibdir)/lua/TYPE as alternative to $(pkgdatadir)/lua/TYPE.
8 years ago
Rémi Denis-Courmont
c624707de2
input item: remove constant stat fields
8 years ago
Rémi Denis-Courmont
8ac0bd4462
input item: remove unused stats members
8 years ago
Rémi Denis-Courmont
cc70e92424
stats: remove the lock
The containing input item lock already must be held while reading or
writing statistics, so this is redundant.
8 years ago
Rémi Denis-Courmont
7bac48bd52
lua: fix race on input_item_t.p_stats
p_stats is written with the input item lock (by the input thread).
Thus the input item lock is necessary to read and dereference p_stats.
8 years ago
Rémi Denis-Courmont
7902c7a656
stream: rename p_source to s (refs #18504 )
8 years ago
Thomas Guillem
17d8bf44c6
httpd: use vlc_alloc helper
9 years ago
Thomas Guillem
c972cfd0f1
libvlc: add an option to disable lua
Playlist lua modules are probed for each opened input. This can take a lot of
time, it can double the time of a local parsing where no lua module are needed.
This time is negligible when playing a file.
Playlist lua probe can take 5ms on desktop (in comparison of 5ms for parsing),
or 50ms on some android devices.
This new option can be used by VLC ports to disable lua when using VLC for
parsing.
9 years ago
Hugo Beauzée-Luyssen
31e424004d
input: Reintroduce subtitle extension check
Fix #18882
9 years ago
Hugo Beauzée-Luyssen
1899d9d420
lua: dialogs: Fix memory leak
9 years ago
Hugo Beauzée-Luyssen
c251c05b4b
lua: dialog: Fix memory leak
9 years ago
Hugo Beauzée-Luyssen
855374961a
lua: libs: input: Fix potential input thread leak
9 years ago
Hugo Beauzée-Luyssen
78afc66c23
lua: libs: input: Allow a subtitle to be added by its mrl
9 years ago