- i_id = playlist_Add( p_playlist, ppsz_argv[ i_opt ],
- ppsz_argv[ i_opt ],
- PLAYLIST_APPEND | (i_opt? 0 : PLAYLIST_GO),
- PLAYLIST_END, -1,
- ppsz_argv[i_opt+1], 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, false );
+