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
688e3bcb
Commit
688e3bcb
authored
Sep 10, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc media list player: add getter for player instance
parent
339aa986
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-1
NEWS
NEWS
+1
-0
include/vlc/libvlc_media_list_player.h
include/vlc/libvlc_media_list_player.h
+10
-0
lib/libvlc.sym
lib/libvlc.sym
+1
-0
lib/media_list_player.c
lib/media_list_player.c
+12
-1
No files found.
NEWS
View file @
688e3bcb
...
...
@@ -141,6 +141,7 @@ libVLC:
This allows to attach media events between create and start.
* Add libvlc_media_get_codec_description to get a human readable description of a codec
* Add libvlc_MediaListEndReached Event to get notified when a media list reached the end
* Add libvlc_media_list_player_get_media_player to get the media player instance of a list player
* Add libvlc_media_parse_with_options that uses a flag to specify parse options
* Add libvlc_audio_output_device_get to get the currently selected audio output device
identifier (if there is one available)
...
...
include/vlc/libvlc_media_list_player.h
View file @
688e3bcb
...
...
@@ -102,6 +102,16 @@ LIBVLC_API void
libvlc_media_list_player_t
*
p_mlp
,
libvlc_media_player_t
*
p_mi
);
/**
* Get media player of the media_list_player instance.
*
* \param p_mlp media list player instance
* \return media player instance
* \note the caller is responsible for releasing the returned instance
*/
LIBVLC_API
libvlc_media_player_t
*
libvlc_media_list_player_get_media_player
(
libvlc_media_list_player_t
*
p_mlp
);
/**
* Set the media list associated with the player
*
...
...
lib/libvlc.sym
View file @
688e3bcb
...
...
@@ -109,6 +109,7 @@ libvlc_media_list_lock
libvlc_media_list_media
libvlc_media_list_new
libvlc_media_list_player_event_manager
libvlc_media_list_player_get_media_player
libvlc_media_list_player_get_state
libvlc_media_list_player_is_playing
libvlc_media_list_player_new
...
...
lib/media_list_player.c
View file @
688e3bcb
/*****************************************************************************
* media_list_player.c: libvlc new API media_list player functions
*****************************************************************************
* Copyright (C) 2007 VLC authors and VideoLAN
* Copyright (C) 2007
-2015
VLC authors and VideoLAN
* $Id$
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
* Niles Bindel <zaggal69 # gmail.com>
* Rémi Denis-Courmont
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
...
...
@@ -600,6 +602,15 @@ void libvlc_media_list_player_set_media_player(libvlc_media_list_player_t * p_ml
libvlc_media_player_release
(
p_oldmi
);
}
/**************************************************************************
* get_media_player (Public)
**************************************************************************/
libvlc_media_player_t
*
libvlc_media_list_player_get_media_player
(
libvlc_media_list_player_t
*
p_mlp
)
{
libvlc_media_player_retain
(
p_mlp
->
p_mi
);
return
p_mlp
->
p_mi
;
}
/**************************************************************************
* set_media_list (Public)
**************************************************************************/
...
...
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