Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a73e4106
Commit
a73e4106
authored
Sep 16, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Out-of-line __pl_Get and __pl_Release - depend on libvlc_int_t
parent
ac8384de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
include/vlc_playlist.h
include/vlc_playlist.h
+5
-7
src/libvlc.sym
src/libvlc.sym
+2
-0
src/playlist/control.c
src/playlist/control.c
+17
-1
No files found.
include/vlc_playlist.h
View file @
a73e4106
...
@@ -279,14 +279,12 @@ struct playlist_add_t
...
@@ -279,14 +279,12 @@ struct playlist_add_t
#define PL_UNLOCK vlc_object_unlock( p_playlist );
#define PL_UNLOCK vlc_object_unlock( p_playlist );
#define pl_Get( a ) a->p_libvlc->p_playlist
#define pl_Get( a ) a->p_libvlc->p_playlist
VLC_EXPORT
(
playlist_t
*
,
__pl_Yield
,
(
vlc_object_t
*
)
);
#define pl_Yield( a ) __pl_Yield( VLC_OBJECT(a) )
#define pl_Yield( a ) __pl_Yield( VLC_OBJECT(a) )
static
inline
playlist_t
*
__pl_Yield
(
vlc_object_t
*
p_this
)
{
VLC_EXPORT
(
void
,
__pl_Release
,
(
vlc_object_t
*
)
);
assert
(
p_this
->
p_libvlc
->
p_playlist
);
#define pl_Release(a) __pl_Release( VLC_OBJECT(a) );
vlc_object_yield
(
p_this
->
p_libvlc
->
p_playlist
);
return
p_this
->
p_libvlc
->
p_playlist
;
}
#define pl_Release(a) vlc_object_release( a->p_libvlc->p_playlist );
/* Playlist control */
/* Playlist control */
#define playlist_Play(p) playlist_Control(p,PLAYLIST_PLAY, VLC_FALSE )
#define playlist_Play(p) playlist_Control(p,PLAYLIST_PLAY, VLC_FALSE )
...
...
src/libvlc.sym
View file @
a73e4106
...
@@ -226,6 +226,8 @@ playlist_BothAddInput
...
@@ -226,6 +226,8 @@ playlist_BothAddInput
playlist_ChildSearchName
playlist_ChildSearchName
playlist_Clear
playlist_Clear
playlist_Control
playlist_Control
__pl_Yield
__pl_Release
playlist_DeleteFromInput
playlist_DeleteFromInput
playlist_Export
playlist_Export
playlist_GetPreferredNode
playlist_GetPreferredNode
...
...
src/playlist/control.c
View file @
a73e4106
...
@@ -37,7 +37,23 @@ static void PreparseEnqueueItemSub( playlist_t *, playlist_item_t * );
...
@@ -37,7 +37,23 @@ static void PreparseEnqueueItemSub( playlist_t *, playlist_item_t * );
* Playlist control
* Playlist control
*****************************************************************************/
*****************************************************************************/
int
playlist_Control
(
playlist_t
*
p_playlist
,
int
i_query
,
vlc_bool_t
b_locked
,
...
)
playlist_t
*
__pl_Yield
(
vlc_object_t
*
p_this
)
{
playlist_t
*
pl
=
p_this
->
p_libvlc
->
p_playlist
;
assert
(
pl
!=
NULL
);
vlc_object_yield
(
pl
);
return
pl
;
}
void
__pl_Release
(
vlc_object_t
*
p_this
)
{
playlist_t
*
pl
=
p_this
->
p_libvlc
->
p_playlist
;
assert
(
pl
!=
NULL
);
vlc_object_release
(
pl
);
}
int
playlist_Control
(
playlist_t
*
p_playlist
,
int
i_query
,
vlc_bool_t
b_locked
,
...
)
{
{
va_list
args
;
va_list
args
;
int
i_result
;
int
i_result
;
...
...
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