1. 25 Jan, 2009 1 commit
    • Max Kellermann's avatar
      use g_free() instead of free() · a45922cd
      Max Kellermann authored
      On some platforms, g_free() must be used for memory allocated by
      GLib.  This patch intends to correct a lot of occurrences, but is
      probably not complete.
      a45922cd
  2. 17 Jan, 2009 1 commit
    • Max Kellermann's avatar
      moved fallback APE/ID3 tag loader to song.c · 5395f5f6
      Max Kellermann authored
      Some plugins used the APE or ID3 tag loader as a fallback when their
      own methods of loading tags did not work.  Move this code out of all
      decoder plugins, into song_file_update().
      5395f5f6
  3. 08 Jan, 2009 1 commit
  4. 29 Dec, 2008 1 commit
    • Frank Mulder's avatar
      mp4: support the writer/composer tag · a51fada1
      Frank Mulder authored
      I tried to search for a certain composer in my collection, but only
      non-mp4 files showed up. The source code reveals that this tag is not
      read. This can be fixed by reading the 'Writer' tag field, in
      mp4_plugin.c, in function mp4_load_tag.
      
      I actually tried this, and after compiling with those lines added,
      also mp4 (.m4a) files showed up when searching for a composer.
      a51fada1
  5. 21 Nov, 2008 1 commit
  6. 16 Nov, 2008 1 commit
    • 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
  7. 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
  8. 04 Nov, 2008 9 commits
  9. 02 Nov, 2008 1 commit
  10. 01 Nov, 2008 2 commits
  11. 31 Oct, 2008 1 commit
  12. 30 Oct, 2008 1 commit
  13. 29 Oct, 2008 2 commits
  14. 26 Oct, 2008 4 commits
  15. 25 Oct, 2008 1 commit
    • Max Kellermann's avatar
      removed internal copy of libmp4ff · 1110a6d4
      Max Kellermann authored
      MPD shouldn't integrate sources of other libraries.  Since libmp4ff is
      part of libfaad, we should remove the old copy from src/mp4ff and link
      with the current version from libfaad instead.
      1110a6d4
  16. 17 Oct, 2008 2 commits
  17. 10 Oct, 2008 1 commit
  18. 08 Oct, 2008 2 commits
  19. 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
  20. 12 Sep, 2008 1 commit
    • Terry's avatar
      mp4: fix potential integer overflow bug in the mp4_decode() function · 79a14c9a
      Terry authored
      A crafted mp4 file could cause an integer overflow in mp4_decode
      function in src/inputPlugins/mp4_plugin.c.  mp4ff_num_samples()
      function returns some tainted value. sizeof(float) * numSamples is an
      integer overflow operation if numSamples is too huge, so xmalloc will
      allocate a small memory region.  I constructe a mp4 file, and use
      faad2 to open the file. mp4ff_num_samples() returns -1. So I think mpd
      bears from the same problem.
      79a14c9a
  21. 07 Sep, 2008 1 commit
  22. 29 Aug, 2008 2 commits
  23. 26 Aug, 2008 1 commit
    • Max Kellermann's avatar
      renamed InputPlugin to struct decoder_plugin · e41be362
      Max Kellermann authored
      "decoder plugin" is a better name than "input plugin", since the
      plugin does not actually do the input - InputStream does.  Also don't
      use typedef, so we can forward-declare it if required.
      e41be362