1. 21 Nov, 2008 4 commits
    • Max Kellermann's avatar
      state_file: save state_file every 5 minutes · 1c0c5832
      Max Kellermann authored
      When MPD quits in a non-clean way, the state file isn't written, and
      on the next start, MPD time warps to the previous clean shutdown.
      Save the state file every 5 minutes; this will probably be
      configurable at a later time.
      
      Note that we don't set a wakeup timer for that: when there is no MPD
      traffic, MPD won't wake up to save the state file.  This minor bug is
      tolerated, because usually there is no change in MPD's state when the
      main thread is idle.
      1c0c5832
    • Max Kellermann's avatar
      input_curl: try to seek by fast-forwarding the buffer · 695d8051
      Max Kellermann authored
      If the caller attempts to seek only a few bytes forward, chances are
      good that the offset is already in the buffer.  In this case, simply
      fast-forward the buffer.
      695d8051
    • Max Kellermann's avatar
      input_curl: moved code to consume_buffer() · 46df0fd7
      Max Kellermann authored
      Added some assertions.
      46df0fd7
    • Max Kellermann's avatar
      input_curl: don't do temporary calculations with input_stream.offset · 7779e413
      Max Kellermann authored
      If someone calls seek() with an invalid (negative) offset, the curl
      implementation of that method returned false, but left this invalid
      offset in input_stream.offset.  Move the calculation to a temporary
      variable.
      7779e413
  2. 20 Nov, 2008 16 commits
  3. 19 Nov, 2008 1 commit
    • Max Kellermann's avatar
      doc: converted doc/COMMANDS to DocBook · a3fd74d0
      Max Kellermann authored
      The goal is to have one structured document which is the authoritative
      protocol specification.  The documentation which currently resides in
      the wiki will be merged.
      a3fd74d0
  4. 18 Nov, 2008 5 commits
  5. 16 Nov, 2008 3 commits
    • Max Kellermann's avatar
      input_stream: size==-1 means unknown size · 75914035
      Max Kellermann authored
      Define the special value "-1" as "unknown size".  Previously, there
      was no indicator for streams with unknown size, which might confuse
      some decoders.
      75914035
    • Max Kellermann's avatar
      ffmpeg: fixed AVSEEK_SIZE · 8882f062
      Max Kellermann authored
      With whence==AVSEEK_SIZE, the seek function should return the file
      size, not the current offset.  Check the return value of
      input_stream_seek().
      8882f062
    • Max Kellermann's avatar
      aac: detect whether to pass "uint32_t*" to NeAACDecInit2() · 9c4e97a6
      Max Kellermann authored
      neaacdec.h declares all arguments as "unsigned long", but internally
      expects uint32_t pointers.  This triggers gcc warnings on 64 bit
      architectures.  To avoid that, make configure.ac detect whether we're
      using Debian's corrected headers or the original libfaad headers.  In
      any case, pass a pointer to an uint32_t, conditionally casted to
      "unsigned long*".
      9c4e97a6
  6. 15 Nov, 2008 3 commits
  7. 14 Nov, 2008 8 commits