[vlc-devel] [PATCH] libvlc: configure cork on startup
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Wed Nov 28 15:08:15 CET 2018
Since the player now handles the playlist cork option, we need to
configure it from this variable at the beginning.
---
src/libvlc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libvlc.c b/src/libvlc.c
index 2f8ded692e..f5d6382cfd 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -135,6 +135,7 @@ PlaylistConfigureFromVariables(vlc_playlist_t *playlist, vlc_object_t *obj)
media_stopped_action = VLC_PLAYER_MEDIA_STOPPED_CONTINUE;
bool start_paused = var_InheritBool(obj, "start-paused");
+ bool playlist_cork = var_InheritBool(obj, "playlist-cork");
vlc_playlist_Lock(playlist);
vlc_playlist_SetPlaybackOrder(playlist, order);
@@ -146,6 +147,7 @@ PlaylistConfigureFromVariables(vlc_playlist_t *playlist, vlc_object_t *obj)
* implementation detail */
vlc_player_SetMediaStoppedAction(player, media_stopped_action);
vlc_player_SetStartPaused(player, start_paused);
+ vlc_player_SetPauseOnCork(player, playlist_cork);
vlc_playlist_Unlock(playlist);
}
--
2.19.1
More information about the vlc-devel
mailing list