Commit 146dedfd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

(cherry picked from commit 2562696be3f12bf080dea6fa6a0b690bbd761e30)
parent 543827e1
......@@ -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