Rémi Denis-Courmont
e48a8a9eb2
objects: add vlc_object_instance()
...instead of open-coded access to obj->obj.libvlc
7 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
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
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
69b25f403d
lua: use helper function to convert from vlc_tick_t to floating point seconds
8 years ago
Steve Lhomme
0223136621
modules: replace hardcoded CLOCK_FREQ fractions/multiples by VLC_TICK macros
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
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
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
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
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