[vlc-devel] [PATCH 3/6] libvlc: handle playlist autostart
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Tue Nov 27 13:28:55 CET 2018
---
src/libvlc.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/libvlc.c b/src/libvlc.c
index f5d6382cfd..8061171cae 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -416,6 +416,13 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
free( psz_val );
}
+ if (var_InheritBool(VLC_OBJECT(p_libvlc), "playlist-autostart"))
+ {
+ vlc_playlist_Lock(priv->main_playlist);
+ vlc_playlist_Start(priv->main_playlist);
+ vlc_playlist_Unlock(priv->main_playlist);
+ }
+
/* Callbacks between interfaces */
/* Create a variable for showing the right click menu */
--
2.19.1
More information about the vlc-devel
mailing list