1. 21 Nov, 2008 2 commits
  2. 20 Nov, 2008 1 commit
  3. 16 Nov, 2008 2 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
      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
  4. 15 Nov, 2008 2 commits
  5. 12 Nov, 2008 10 commits
  6. 11 Nov, 2008 1 commit
    • 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
  7. 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
  8. 02 Nov, 2008 3 commits
  9. 01 Nov, 2008 2 commits
  10. 31 Oct, 2008 1 commit
  11. 30 Oct, 2008 1 commit
  12. 29 Oct, 2008 1 commit
  13. 26 Oct, 2008 4 commits
  14. 17 Oct, 2008 1 commit
  15. 10 Oct, 2008 1 commit
  16. 08 Oct, 2008 1 commit
  17. 29 Sep, 2008 2 commits
    • Max Kellermann's avatar
      use C99 struct initializers · de7cda1d
      Max Kellermann authored
      The old struct initializers are error prone and don't allow moving
      elements around.  Since we are going to overhaul some of the APIs
      soon, it's easier to have all implementations use C99 initializers.
      de7cda1d
    • Eric Wong's avatar
      Switch to C99 types (retaining compat with old compilers) · 0352766d
      Eric Wong authored
      Seeing the "mpd_" prefix _everywhere_ is mind-numbing as the
      mind needs to retrain itself to skip over the first 4 tokens of
      a type to get to its meaning.  So avoid having extra characters
      on my terminal to make it easier to follow code at 2:30 am in
      the morning.
      
      Please report any new issues you may come across on Free
      toolchains.  I realize how difficult it can be to build/maintain
      cross-compiling toolchains and I have no intention of forcing
      people to upgrade their toolchains to build mpd.
      
      Tested with gcc 2.95.4 and and gcc 4.3.1 on x86-32.
      0352766d
  18. 07 Sep, 2008 1 commit
  19. 29 Aug, 2008 2 commits
  20. 26 Aug, 2008 1 commit
    • Max Kellermann's avatar
      added decoder_read() · 940ecf53
      Max Kellermann authored
      On our way to stabilize the decoder API, we will one day remove the
      input stream functions.  The most basic function, read() will be
      provided by decoder_api.h with this patch.  It already contains a loop
      (still with manual polling), error/eof handling and decoder command
      checks.  This kind of code used to be duplicated in all decoder
      plugins.
      940ecf53