[vlc-commits] Respect --no-playlist-autostart (fix #3541)
Rémi Denis-Courmont
git at videolan.org
Mon Jun 20 18:56:13 CEST 2011
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 20 19:54:06 2011 +0300| [146dedfd039a3f592d40ccb00b1e9e2a136d5228] | committer: Rémi Denis-Courmont
Respect --no-playlist-autostart (fix #3541)
(cherry picked from commit 2562696be3f12bf080dea6fa6a0b690bbd761e30)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=146dedfd039a3f592d40ccb00b1e9e2a136d5228
---
src/control/playlist.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/control/playlist.c b/src/control/playlist.c
index 79f274c..72a78f2 100644
--- a/src/control/playlist.c
+++ b/src/control/playlist.c
@@ -45,7 +45,8 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
VLC_UNUSED(i_id); VLC_UNUSED(i_options); VLC_UNUSED(ppsz_options);
assert( pl );
- if( pl->items.i_size == 0 )
+ if( !var_GetBool( pl, "playlist-autostart" )
+ || pl->items.i_size == 0 )
return;
playlist_Control( pl, PLAYLIST_PLAY, false );
}
More information about the vlc-commits
mailing list