Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Vorbis tools Vorbis tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 63
    • Issues 63
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Xiph.Org
  • Vorbis toolsVorbis tools
  • Issues
  • #917

Closed
Open
Created May 20, 2006 by aquegg@aquegg

[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.
  }
Assignee
Assign to
Time tracking