[vlc-commits] Respect --no-playliust-autostart (fix #3541)
Rémi Denis-Courmont
git at videolan.org
Mon Jun 20 18:54:39 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 20 19:54:06 2011 +0300| [2562696be3f12bf080dea6fa6a0b690bbd761e30] | committer: Rémi Denis-Courmont
Respect --no-playliust-autostart (fix #3541)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2562696be3f12bf080dea6fa6a0b690bbd761e30
---
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