Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
781ff751
Commit
781ff751
authored
Jan 05, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: set playlist object explicitly in state
parent
3ccae49f
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
16 additions
and
47 deletions
+16
-47
modules/lua/Makefile.am
modules/lua/Makefile.am
+1
-1
modules/lua/demux.c
modules/lua/demux.c
+0
-1
modules/lua/extension.c
modules/lua/extension.c
+1
-0
modules/lua/intf.c
modules/lua/intf.c
+1
-0
modules/lua/libs/equalizer.c
modules/lua/libs/equalizer.c
+0
-1
modules/lua/libs/input.c
modules/lua/libs/input.c
+0
-1
modules/lua/libs/misc.c
modules/lua/libs/misc.c
+10
-0
modules/lua/libs/objects.c
modules/lua/libs/objects.c
+0
-1
modules/lua/libs/playlist.c
modules/lua/libs/playlist.c
+0
-10
modules/lua/libs/playlist.h
modules/lua/libs/playlist.h
+0
-30
modules/lua/libs/sd.c
modules/lua/libs/sd.c
+0
-1
modules/lua/libs/volume.c
modules/lua/libs/volume.c
+0
-1
modules/lua/vlc.h
modules/lua/vlc.h
+3
-0
No files found.
modules/lua/Makefile.am
View file @
781ff751
...
...
@@ -20,7 +20,7 @@ liblua_plugin_la_SOURCES = \
lua/libs/net.c
\
lua/libs/objects.c lua/libs/objects.h
\
lua/libs/osd.c
\
lua/libs/playlist.c
lua/libs/playlist.h
\
lua/libs/playlist.c
\
lua/libs/sd.c
\
lua/libs/stream.c
\
lua/libs/strings.c
\
...
...
modules/lua/demux.c
View file @
781ff751
...
...
@@ -37,7 +37,6 @@
#include "vlc.h"
#include "libs.h"
#include "libs/playlist.h"
/*****************************************************************************
...
...
modules/lua/extension.c
View file @
781ff751
...
...
@@ -808,6 +808,7 @@ static lua_State* GetLuaState( extensions_manager_t *p_mgr,
return
NULL
;
}
vlclua_set_this
(
L
,
p_mgr
);
vlclua_set_playlist_internal
(
L
,
pl_Get
(
p_mgr
)
);
vlclua_extension_set
(
L
,
p_ext
);
luaL_openlibs
(
L
);
...
...
modules/lua/intf.c
View file @
781ff751
...
...
@@ -242,6 +242,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
}
vlclua_set_this
(
L
,
p_intf
);
vlclua_set_playlist_internal
(
L
,
pl_Get
(
p_intf
)
);
luaL_openlibs
(
L
);
...
...
modules/lua/libs/equalizer.c
View file @
781ff751
...
...
@@ -40,7 +40,6 @@
#include "input.h"
#include "../libs.h"
#include "../vlc.h"
#include "playlist.h"
#include "../../audio_filter/equalizer_presets.h"
#if !defined _WIN32
...
...
modules/lua/libs/input.c
View file @
781ff751
...
...
@@ -41,7 +41,6 @@
#include "../vlc.h"
#include "input.h"
#include "playlist.h"
#include "../libs.h"
#include "../extension.h"
...
...
modules/lua/libs/misc.c
View file @
781ff751
...
...
@@ -73,6 +73,16 @@ vlc_object_t * vlclua_get_this( lua_State *L )
return
vlclua_get_object
(
L
,
vlclua_set_this
);
}
void
vlclua_set_playlist_internal
(
lua_State
*
L
,
playlist_t
*
pl
)
{
vlclua_set_object
(
L
,
vlclua_set_playlist_internal
,
pl
);
}
playlist_t
*
vlclua_get_playlist_internal
(
lua_State
*
L
)
{
return
vlclua_get_object
(
L
,
vlclua_set_playlist_internal
);
}
/*****************************************************************************
* VLC error code translation
*****************************************************************************/
...
...
modules/lua/libs/objects.c
View file @
781ff751
...
...
@@ -38,7 +38,6 @@
#include "../vlc.h"
#include "../libs.h"
#include "objects.h"
#include "playlist.h"
#include "input.h"
/*****************************************************************************
...
...
modules/lua/libs/playlist.c
View file @
781ff751
...
...
@@ -40,18 +40,8 @@
#include "../vlc.h"
#include "../libs.h"
#include "input.h"
#include "playlist.h"
#include "variables.h"
/*****************************************************************************
* Internal lua<->vlc utils
*****************************************************************************/
playlist_t
*
vlclua_get_playlist_internal
(
lua_State
*
L
)
{
vlc_object_t
*
p_this
=
vlclua_get_this
(
L
);
return
pl_Get
(
p_this
);
}
static
int
vlclua_playlist_prev
(
lua_State
*
L
)
{
playlist_t
*
p_playlist
=
vlclua_get_playlist_internal
(
L
);
...
...
modules/lua/libs/playlist.h
deleted
100644 → 0
View file @
3ccae49f
/*****************************************************************************
* playlist.h
*****************************************************************************
* Copyright (C) 2007-2008 the VideoLAN team
* $Id$
*
* Authors: Antoine Cellerier <dionoea at videolan tod org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef VLC_LUA_PLAYLIST_H
#define VLC_LUA_PLAYLIST_H
playlist_t
*
vlclua_get_playlist_internal
(
lua_State
*
);
#endif
modules/lua/libs/sd.c
View file @
781ff751
...
...
@@ -41,7 +41,6 @@
#include "../vlc.h"
#include "../libs.h"
#include "playlist.h"
/*****************************************************************************
*
...
...
modules/lua/libs/volume.c
View file @
781ff751
...
...
@@ -41,7 +41,6 @@
#include "../vlc.h"
#include "../libs.h"
#include "playlist.h"
/*****************************************************************************
* Volume related
...
...
modules/lua/vlc.h
View file @
781ff751
...
...
@@ -113,6 +113,9 @@ void vlclua_set_this( lua_State *, vlc_object_t * );
#define vlclua_set_this(a, b) vlclua_set_this(a, VLC_OBJECT(b))
vlc_object_t
*
vlclua_get_this
(
lua_State
*
);
void
vlclua_set_playlist_internal
(
lua_State
*
,
playlist_t
*
);
playlist_t
*
vlclua_get_playlist_internal
(
lua_State
*
);
/*****************************************************************************
* Lua function bridge
*****************************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment