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
c39376d3
Commit
c39376d3
authored
Jan 07, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: add helper for playlist startup
Also remove a useless and unsynchronized test.
parent
93e4bf12
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
lib/libvlc_internal.h
lib/libvlc_internal.h
+1
-0
lib/playlist.c
lib/playlist.c
+1
-7
src/interface/interface.c
src/interface/interface.c
+13
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
No files found.
lib/libvlc_internal.h
View file @
c39376d3
...
...
@@ -49,6 +49,7 @@ VLC_API void libvlc_InternalCleanup( libvlc_int_t * );
VLC_API
void
libvlc_InternalDestroy
(
libvlc_int_t
*
);
VLC_API
int
libvlc_InternalAddIntf
(
libvlc_int_t
*
,
const
char
*
);
VLC_API
void
libvlc_InternalPlay
(
libvlc_int_t
*
);
VLC_API
void
libvlc_InternalWait
(
libvlc_int_t
*
);
VLC_API
void
libvlc_SetExitHandler
(
libvlc_int_t
*
,
void
(
*
)
(
void
*
),
void
*
);
...
...
lib/playlist.c
View file @
c39376d3
...
...
@@ -41,14 +41,8 @@
void
libvlc_playlist_play
(
libvlc_instance_t
*
p_instance
,
int
i_id
,
int
i_options
,
char
**
ppsz_options
)
{
playlist_t
*
pl
=
pl_Get
(
p_instance
->
p_libvlc_int
);
libvlc_InternalPlay
(
p_instance
->
p_libvlc_int
);
VLC_UNUSED
(
i_id
);
VLC_UNUSED
(
i_options
);
VLC_UNUSED
(
ppsz_options
);
assert
(
pl
);
if
(
!
var_GetBool
(
pl
,
"playlist-autostart"
)
||
pl
->
items
.
i_size
==
0
)
return
;
playlist_Control
(
pl
,
PLAYLIST_PLAY
,
false
);
}
int
libvlc_add_intf
(
libvlc_instance_t
*
p_instance
,
const
char
*
name
)
...
...
src/interface/interface.c
View file @
c39376d3
...
...
@@ -46,6 +46,7 @@
#include <vlc_playlist.h>
#include "libvlc.h"
#include "playlist/playlist_internal.h"
#include "../lib/libvlc_internal.h"
static
int
AddIntfCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
...
...
@@ -174,6 +175,18 @@ void intf_InsertItem(libvlc_int_t *libvlc, const char *mrl, unsigned optc,
0
,
-
1
,
optc
,
optv
,
flags
,
true
,
pl_Unlocked
);
}
void
libvlc_InternalPlay
(
libvlc_int_t
*
libvlc
)
{
playlist_t
*
pl
;
vlc_mutex_lock
(
&
lock
);
pl
=
libvlc_priv
(
libvlc
)
->
playlist
;
vlc_mutex_unlock
(
&
lock
);
if
(
pl
!=
NULL
&&
var_GetBool
(
pl
,
"playlist-autostart"
))
playlist_Control
(
pl
,
PLAYLIST_PLAY
,
false
);
}
/**
* Stops and destroys all interfaces
* @param p_libvlc the LibVLC instance
...
...
src/libvlccore.sym
View file @
c39376d3
...
...
@@ -224,6 +224,7 @@ input_Close
intf_Create
IsUTF8
libvlc_InternalAddIntf
libvlc_InternalPlay
libvlc_InternalCleanup
libvlc_InternalCreate
libvlc_InternalDestroy
...
...
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