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
d90d8b7d
Commit
d90d8b7d
authored
Jul 05, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: Define playlist_CurrentInput(), that returns current playing input.
parent
b94083f5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
include/vlc_playlist.h
include/vlc_playlist.h
+5
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
src/playlist/engine.c
src/playlist/engine.c
+12
-0
No files found.
include/vlc_playlist.h
View file @
d90d8b7d
...
...
@@ -294,6 +294,10 @@ VLC_EXPORT( void, __pl_Release, ( vlc_object_t * ) );
*/
VLC_EXPORT
(
int
,
playlist_Control
,
(
playlist_t
*
p_playlist
,
int
i_query
,
bool
b_locked
,
...
)
);
/** Get current playing input. The object is retained.
*/
VLC_EXPORT
(
input_thread_t
*
,
playlist_CurrentInput
,
(
playlist_t
*
p_playlist
)
);
/** Clear the playlist
* \param b_locked TRUE if playlist is locked when entering this function
*/
...
...
@@ -411,6 +415,7 @@ static inline int playlist_Import( playlist_t *p_playlist, const char *psz_file)
return
VLC_SUCCESS
;
}
/** Tell if the playlist is currently running */
#define playlist_IsPlaying( pl ) ( pl->status.i_status == PLAYLIST_RUNNING )
...
...
src/libvlccore.sym
View file @
d90d8b7d
...
...
@@ -244,6 +244,7 @@ playlist_BothAddInput
playlist_ChildSearchName
playlist_Clear
playlist_Control
playlist_CurrentInput
playlist_DeleteFromInput
playlist_DeleteInputInParent
playlist_Export
...
...
src/playlist/engine.c
View file @
d90d8b7d
...
...
@@ -258,6 +258,18 @@ void playlist_set_current_input(
}
}
/** Get current playing input.
*/
input_thread_t
*
playlist_CurrentInput
(
playlist_t
*
p_playlist
)
{
input_thread_t
*
p_input
;
PL_LOCK
;
p_input
=
p_playlist
->
p_input
;
if
(
p_input
)
vlc_object_yield
(
p_input
);
PL_UNLOCK
;
return
p_input
;
}
/**
* @}
...
...
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