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
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
Steve Lhomme
69b25f403d
lua: use helper function to convert from vlc_tick_t to floating point seconds
8 years ago
Filip Roséen
7aa4bec741
playlist: playlist_NodeDelete: privatize forceful delete
Only the core should have permission to do forceful deletion of
entities.
This patch removes a mostly static, from outside of the core, argument
to playlist_NodeDelete, while also making it safer to use as it was
previously possible for anything with access to the function to delete
read-only entities.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
9 years ago
Rémi Denis-Courmont
f4dbb80854
lua: use playlist_ViewPlay(), fix aliasing
(The node parameter must be a playlist_item_t *, cannot be a void *.)
9 years ago
Rémi Denis-Courmont
435aecff88
playlist: use boolean for playlist_AddInput() mode parameter
9 years ago
Rémi Denis-Courmont
10232c2d3b
playlist: remove the skip flag
9 years ago
Rémi Denis-Courmont
9c77c04437
playlist: allocate the root item statically
This allocates space for the root playlist item directly inside the
playlist structure. Creation of that item required a special case
anyway as it was the only item without a parent.
As a consequence, one unhandled error case is removed.
9 years ago
Rémi Denis-Courmont
2167ff75e6
lua: factor common playlist add/enqueue code
9 years ago
Hugo Beauzée-Luyssen
204f711366
lua: Don't expose a "goto" method in lua >= 5.2
It became a reserved keyword
9 years ago
Pierre Ynard
e72b4cfac1
lua: fix comments about playlist API expansion
10 years ago
Pierre Ynard
bf9003a0ac
lua: release lock earlier when querying playlist status
10 years ago
Rémi Denis-Courmont
9aaa9f7fbe
lua: fix playlist locking
10 years ago
Rémi Denis-Courmont
72f21416f2
playlist: remove unused expanded flag
10 years ago
Rémi Denis-Courmont
e7a4c97c94
playlist: replace playlist_DeleteFromInput() wit playlist_NodeDelete()
playlist_DeleteFromInput() requires recursive search through the whole
playlist to find the correct playlist item. This only makes sense if
the playlist item or playlist item ID are not known.
10 years ago
Rémi Denis-Courmont
d5f4d48d72
playlist: remove unused remove flag
10 years ago
Rémi Denis-Courmont
5001f5b25e
playlist: remove unused save flag
10 years ago
Rémi Denis-Courmont
2a70d84151
lua: return playlist item ID from playlist.current()
This makes more sense than returning the input item ID, which is not
exposed in any other place and manner through Lua. And it seems that
was the intent too.
Then again, the value is either way potentially invalid by the time it
is returned.
10 years ago
Rémi Denis-Courmont
520b13a2ca
lua: use luaL_checkint() where applicable
10 years ago
Ludovic Fauvet
2468da50f6
lua: replace deprecated functions
10 years ago
Jean-Baptiste Kempf
5dafc001bb
Modules: Remove tabs in source code
11 years ago
Rémi Denis-Courmont
522604203a
playlist: rename playlist_Pause() to playlist_TogglePause()
The behaviour is unchanged:
- if stopped: starts playing,
- if playing: pauses playing,
- if paused: resumes playing.
11 years ago
Rémi Denis-Courmont
6efc10f0a5
lua/playlist: do not handle impossible error
11 years ago
Rémi Denis-Courmont
9e7dd0b49f
playlist: move i_nb_played to playlist item, not the input item
This is accessed with the playlock lock anyway.
12 years ago
Rémi Denis-Courmont
6da72c20cf
lua: move some code, no functional changes
12 years ago
Rémi Denis-Courmont
781ff75140
Lua: set playlist object explicitly in state
12 years ago
Tomas Krotil
6daa137c12
lua playlist move and delete functions run-time
Added playlist move function for lua and modified delete for detecting if item is legal
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
13 years ago
Rafaël Carré
f79f3ae2f8
lua: export playlist item's input item
14 years ago
Kelly Anderson
9934897a3b
Change goto to gotoitem for lua 5.2 compatibility. Maintain lua 5.1 backwards compatibility.
OK, this patch should take into account the recommendations.
Signed-off-by: Antoine Cellerier <dionoea@videolan.org>
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
Akash Mehrotra
88359db48d
luahttp: implement pl_delete to match oldhttp feature
THIS IS TOTALLY UNSUPPORTED.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
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
Rémi Duraffort
a63042d425
lua_playlist: Use the title of the item and fallback to the name if this one is empty (better for some sd like icecast).
16 years ago
Antoine Cellerier
f782f86eb4
Use pushliteral instead of pushstring where possible. Saves a strlen call.
16 years ago
Jakob Leben
c3d342a2d5
playlist: allow non-recursive search
16 years ago
Rémi Denis-Courmont
7e4d50ac42
Remove pl_Release, and rename pl_Hold back to pl_Get
pl_Hold() assumed the playlist was already created.
pl_Release() does not solve any problem. Playlist synchronization is
done with the playlist lock, while playlist deletion must anyway be done
after all interfaces, services and other threads are joined.
16 years ago
Jakob Leben
6dafd7ff91
lua: adjust to playlist changes and kill a warning
now services discovery root nodes can be found from lua
16 years ago
Antoine Cellerier
c7b0875374
Cleanup playlist status.
17 years ago
Antoine Cellerier
62d4d133a9
repeat is a reserved lua keyword
Provide playlist._repeat() instead (and keep the old .repeat in case
anybody was using playlist["repeat"] to workaround the reserved keyword
issue).
17 years ago
Jean-Philippe André
1a881eeb4f
Lua: don't lock playlist before playlist_Play
17 years ago
Rémi Denis-Courmont
6bbc4b9934
Pass pointer rather than ID for playlist item-current
17 years ago
Laurent Aimar
bf099fea1f
Renamed playlist "playlist-current" to "item-current".
17 years ago
Rémi Duraffort
7e4419bcc6
The playlist have to be locked when calling playlist_ItemGetById (not tested for wince and pda interface).
17 years ago
Rémi Denis-Courmont
71fb06931f
Unused variable
18 years ago
Rémi Duraffort
303113c796
some cleaning.
18 years ago
Pierre d'Herbemont
d228fdd28e
playlist: Move more members as private.
18 years ago
Antoine Cellerier
ba6501f308
s/pl_Yield/pl_Hold/
18 years ago