Commit 2562696b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Respect --no-playliust-autostart (fix #3541)

parent da59205e
......@@ -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 );
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment