1. 19 Jun, 2009 1 commit
    • Max Kellermann's avatar
      decoder_thread: reopen the stream after file_decode() has failed · 2536b0da
      Max Kellermann authored
      When decoding a local file, the decoder thread tries to run all
      matching decoders, until one succeeds.  Both file_decode() and
      stream_decode() can decode a stream, but MPD closes the stream before
      calling file_decode().  Problem is: when this decoder fails, and the
      next's stream_decode() method is invoked, the input_stream is still
      closed.  This patch reopens it.
      2536b0da
  2. 13 Apr, 2009 1 commit
  3. 15 Mar, 2009 1 commit
  4. 13 Mar, 2009 1 commit
    • Avuton Olrich's avatar
      all: Update copyright header. · 0aee49bd
      Avuton Olrich authored
      This updates the copyright header to all be the same, which is
      pretty much an update of where to mail request for a copy of the GPL
      and the years of the MPD project. This also puts all committers under
      'The Music Player Project' umbrella. These entries should go
      individually in the AUTHORS file, for consistancy.
      0aee49bd
  5. 05 Mar, 2009 2 commits
    • Max Kellermann's avatar
      pipe: added music_buffer, rewrite music_pipe · 01cf7fea
      Max Kellermann authored
      Turn the music_pipe into a simple music_chunk queue.  The music_chunk
      allocation code is moved to music_buffer, and is now managed with a
      linked list instead of a ring buffer.  Two separate music_pipe objects
      are used by the decoder for the "current" and the "next" song, which
      greatly simplifies the cross-fading code.
      01cf7fea
    • Max Kellermann's avatar
      music_pipe: added music_pipe_push() · 000b2d4f
      Max Kellermann authored
      Added music_pipe_allocate(), music_pipe_push() and
      music_pipe_cancel().  Those functions allow the caller (decoder thread
      in this case) to do its own chunk management.  The functions
      music_pipe_flush() and music_pipe_tag() can now be removed.
      000b2d4f
  6. 25 Feb, 2009 1 commit
  7. 15 Feb, 2009 2 commits
  8. 11 Feb, 2009 1 commit
  9. 29 Jan, 2009 1 commit
    • Max Kellermann's avatar
      archive: replaced setup_stream() with open_stream() · 82cfce76
      Max Kellermann authored
      The open_stream() method opens the input_stream.  This allows the
      archive plugin to do its own initialization, and it also allows it to
      use input_stream.data.  We can remove input_stream.archive now, which
      was unnatural to have in the first place.
      82cfce76
  10. 25 Jan, 2009 1 commit
  11. 07 Jan, 2009 1 commit
  12. 04 Jan, 2009 4 commits
  13. 03 Jan, 2009 1 commit
  14. 02 Jan, 2009 1 commit
  15. 28 Dec, 2008 3 commits
  16. 25 Nov, 2008 1 commit
  17. 24 Nov, 2008 1 commit
  18. 20 Nov, 2008 1 commit
  19. 11 Nov, 2008 2 commits
    • Max Kellermann's avatar
      decoder: fixed typo in assertion · 401e77b2
      Max Kellermann authored
      decoder_file_decode() should check for plugin->file_decode, not
      plugin->stream_decode().
      401e77b2
    • Max Kellermann's avatar
      decoder: return void from decode() methods · 9eed4191
      Max Kellermann authored
      The stream_decode() and file_decode() methods returned a boolean,
      indicating whether they were able to decode the song.  This is
      redundant, since we already know that: if decoder_initialized() has
      been called (and dc.state==DECODE), the plugin succeeded.  Change both
      methods to return void.
      9eed4191
  20. 10 Nov, 2008 3 commits
  21. 08 Nov, 2008 2 commits
  22. 04 Nov, 2008 1 commit
    • Max Kellermann's avatar
      decoder: removed stream_types · 85a7d1a1
      Max Kellermann authored
      Instead of checking the stream_types bit set, we can simply check
      whether the methods stream_decode() and file_decode() are implemented.
      85a7d1a1
  23. 03 Nov, 2008 3 commits
  24. 02 Nov, 2008 4 commits