Rémi Denis-Courmont
d1ffbbf01e
lua/input: playlist cannot be nul
7 years ago
Rémi Denis-Courmont
d8ddb20fde
lua: remove useless header file
7 years ago
Rémi Denis-Courmont
d0b51794db
lua: privatize vlclua_push_vlc_object()
7 years ago
Rémi Denis-Courmont
cb105cd837
lua: reorder to avoid forward declaration
7 years ago
Rémi Denis-Courmont
3e8986472a
Rename vlc_error() to vlc_error_string()
As a sort of VLC equivalent for strerror(), it is tempting to call it
vlc_strerror()... but that is already taken for converting actual
standard error codes to strings.
7 years ago
Rémi Denis-Courmont
c2abea1ff5
lua: remove sd.is_loaded
This has been deprecated for over 7 years, and broken for yet longer.
7 years ago
Rémi Denis-Courmont
489c87b5c0
lua: fix variable shadowing
7 years ago
Rémi Denis-Courmont
d867dac99e
Use vlc_object_parent()
7 years ago
Rémi Denis-Courmont
4fb39fac32
lua: use vlc_LogHeaderCreate()
7 years ago
Rémi Denis-Courmont
e48a8a9eb2
objects: add vlc_object_instance()
...instead of open-coded access to obj->obj.libvlc
7 years ago
Marvin Scholz
6b5477551f
lua: Rename demux to stream_filter
This is since some time a stream filter and not a demuxer anymore,
therefore this should be named stream_filter to not cause confusion
about that.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
7 years ago
Steve Lhomme
5363279805
remove the $Id$ in the source code
7 years ago
Rémi Denis-Courmont
9314dc4913
lua: remove no-op casts
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
Thomas Guillem
034a3f75a2
core: move playlist to playlist_legacy
To make room for the new playlist.
This playlist_legacy will be removed once all modules are using the new
playlist.
8 years ago
Romain Vimont
53009d018b
vlc_arrays: refactor foreach loop
Replace:
FOREACH_ARRAY(item, array)
// ...
FOREACH_END()
by:
ARRAY_FOREACH(item, array)
{
// ...
}
Note that it is not possible to declare the iteration variable directly
anymore:
ARRAY_FOREACH(void *item, array)
Instead, use:
void *item;
ARRAY_FOREACH(item, array)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
Hannes Domani
b9cef2cce0
lua: fix memory leak
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
8 years ago
Steve Lhomme
72466c75ec
vlc_input_item: rename INPUT_DURATION_UNKNOWN to INPUT_DURATION_INDEFINITE
For sources with no exact time limits, therefore it should not be used as such.
8 years ago
Steve Lhomme
887b2e0a78
input:item: use a define for vlc://nop
So we can document what it means
8 years ago
Hugo Beauzée-Luyssen
d36e369e6a
core: Remove old medialibrary
8 years ago
Hugo Beauzée-Luyssen
06a21a6443
modules: Remove references to the old media library
8 years ago
Hugo Beauzée-Luyssen
b9e2274d6b
lua: Expose rand functions
8 years ago
Steve Lhomme
51cb7df9ed
modules: make use of the special duration value INPUT_DURATION_UNKNOWN
Instead of a hardcoded value (which is not VLC_TICK_INVALID)
8 years ago
Steve Lhomme
84740adccb
modules: use VLC_TIMER_FIRE_ONCE instead of 0
The intent is more readable this way
8 years ago
Steve Lhomme
543e9fb997
modules: use vlc_timer_disarm() instead of a call with 0 delay
The intent is more readable this way and can be reworked later.
8 years ago
Steve Lhomme
69b25f403d
lua: use helper function to convert from vlc_tick_t to floating point seconds
8 years ago
Steve Lhomme
655fd787b3
lua: replace hardcoded timer delay value by a VLC_TICK expression
8 years ago
Steve Lhomme
911569be2c
modules: convert variables in seconds to ticks using vlc_tick_from_sec()
8 years ago
Steve Lhomme
0223136621
modules: replace hardcoded CLOCK_FREQ fractions/multiples by VLC_TICK macros
8 years ago
Steve Lhomme
d5e794f802
modules: replace hardcoded CLOCK_FREQ multiples by VTICK_FROM_SEC()
8 years ago
Steve Lhomme
b4dfbc6283
rename mdate() to vlc_tick_now()
The lua "mdate" remains the same.
8 years ago
Steve Lhomme
ff56c92a5e
rename mtime_t to vlc_tick_t
Keep a copy of vlc_tick_tfor backward compatibility.
8 years ago
Rémi Denis-Courmont
902dd36bbd
configure: remove LIBPTHREAD
POSIX threads are always enabled implicitly.
8 years ago
Rémi Denis-Courmont
517a7e7b3f
input item: use vlc_list for per-category infos
8 years ago
Rémi Denis-Courmont
6a923aeb2c
vlm: vlm_New() needs a VLC instance
Don't hide the fact.
8 years ago
Rémi Denis-Courmont
0b3b1edf14
variables: use table of vlc_value_t for VLC_VAR_GETCHOICES
This simplifies the notation. No function differences.
8 years ago
Rémi Denis-Courmont
7048874668
variables: inline var_FreeList() in simple loops
This works like config choices.
8 years ago
Rémi Denis-Courmont
5e50399a45
variables: add count parameter for VLC_VAR_GETCHOICES
8 years ago
Rémi Denis-Courmont
34925c7cb5
variables: use char *** for VLC_VAR_GETCHOICES texts
8 years ago
Rémi Denis-Courmont
63ce436225
variables: pass vlc_list_t directly with VLC_VAR_GETCHOICES
8 years ago
Rémi Denis-Courmont
8d46058e2e
vlm: read vlm-conf variable just once
8 years ago
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