[PATCH] ogg123's -k option should only skip audio from the 1st file on the command line
When using the -k (--skip) option, ogg123 currently skips audio from each file on the command line. I think it should only skip for the 1st file. Here is the proposed fix to ogg123.c:
/* Skip over audio */
if (options.seekpos > 0.0) {
if (!format->seek(decoder, options.seekpos,
DECODER_SEEK_START)) {
status_error(_("Could not skip %f seconds of
audio."), options.seekpos);
if (audio_buffer != NULL)
buffer_thread_kill(audio_buffer);
return;
}
options.seekpos = 0.0; <--- Please add this line.
}