- if( i_opt || config_GetInt( p_this, "playlist-enqueue" ) )
- {
- playlist_PlaylistAddExt( p_playlist, ppsz_argv[i_opt],
- ppsz_argv[i_opt], PLAYLIST_APPEND ,
- PLAYLIST_END, -1,
- (char const **)( i_options ? &ppsz_argv[i_opt+1] : NULL ),
- i_options );
- } else {
- playlist_PlaylistAddExt( p_playlist, ppsz_argv[i_opt],
- ppsz_argv[i_opt], PLAYLIST_APPEND | PLAYLIST_GO,
- PLAYLIST_END, -1,
- (char const **)( i_options ? &ppsz_argv[i_opt+1] : NULL ),
- i_options );
- }
+ playlist_AddExt( p_playlist, ppsz_argv[i_opt],
+ NULL, PLAYLIST_APPEND |
+ ( ( i_opt || p_data->enqueue ) ? 0 : PLAYLIST_GO ),
+ PLAYLIST_END, -1,
+ (char const **)( i_options ? &ppsz_argv[i_opt+1] : NULL ),
+ i_options, true, pl_Unlocked );