1. 03 Feb, 2009 4 commits
    • Max Kellermann's avatar
      ffmpeg: fixed seek integer overflow · 824d299e
      Max Kellermann authored
      The "current" variable is used for calculating the seek destination,
      and was declared as "int".  With very long song files, the 32 bit
      integer can overflow.  ffmpeg expects an int64_t, which is very
      unlikely to overflow.  Switch to int64_t.
      824d299e
    • Max Kellermann's avatar
      ffmpeg: check if the time stamp is valid · f3b73b82
      Max Kellermann authored
      When ffmpeg cannot estimate the elapsed time, it sets
      AVPacket.pts=AV_NOPTS_VALUE.  Our ffmpeg decoder plugin did not check
      for that special value.
      f3b73b82
    • Max Kellermann's avatar
      ffmpeg: don't warn of empty packet output · 81b6c0d7
      Max Kellermann authored
      If avcodec_decode_audio2() returns no output for an AVPacket,
      libavcodec may buffer some data, and return a larger chunk of output
      later.  This patch disables a lot of bogus warnings.
      81b6c0d7
    • Max Kellermann's avatar
      ffmpeg: print codec name · a7632b09
      Max Kellermann authored
      Output the name of the codec as a debug message.  During my tests,
      ffmpeg never filled this struct member, but it may do so in the past,
      and this debug message might become helpful.
      a7632b09
  2. 30 Jan, 2009 3 commits
    • Matthias Drochner's avatar
      mikmod: call MikMod_Exit() only in the finish() method · 5b852886
      Matthias Drochner authored
      Hi -
      independently of libmikmod's other problems - there seems
      to be a problem in mpd's wrapper: MikMod_Exit() is called
      after the first file is decoded, which frees some ressources
      within the mikmod library. An attempt to play a second file
      leads to a crash. The appended patch fixes this for me.
      (I don't know what the "dup" entry is good for - someone
      who knows should review that too.)
      best regards
      Matthias
      
      [mk: removed 3 more MikMod_Exit() invocations]
      5b852886
    • Max Kellermann's avatar
      wavpack: pass NULL if the .wvc file fails to open · 02bfb0c4
      Max Kellermann authored
      The wavpack library seems to use the .wvc stream even if the OPEN_WVC
      flag is not set.  In this case, pass NULL to be sure libwavpack won't
      use it.
      02bfb0c4
    • David Horn's avatar
      ffmeg: added support for the tags comment, genre, year · efb04532
      David Horn authored
      ffmpeg_tag_internal() does not look for a few tags that mpd
      supports. Most noteably:
      
       comment -> TAG_ITEM_COMMENT -> Description
       genre -> TAG_ITEM_GENRE -> WM/Genre (not WM/GenreID)
       year -> TAG_ITEM_DATE -> WM/Year
      
      I *think* that this is the last of the tags that AVFormatContext() in
      ffmpeg supports that mpd also uses.
      efb04532
  3. 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
  4. 24 Jan, 2009 12 commits
  5. 19 Jan, 2009 1 commit
  6. 17 Jan, 2009 3 commits
    • Max Kellermann's avatar
    • 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
    • Max Kellermann's avatar
      oggvorbis: disable seeking on remote songs · d83eff80
      Max Kellermann authored
      When libvorbis knows that a song is seekable, it seeks around like
      crazy in the file before starting to decode it.  This is very
      expensive on remote HTTP resources, and delays MPD for 10 or 20
      seconds.
      
      This patch disables seeking on remote songs, because the advantages of
      quickly playing a song seem to weigh more than the theoretical ability
      of seeking for most MPD users.  If users feel this feature is needed,
      we will make a configuration option for that.
      d83eff80
  7. 16 Jan, 2009 1 commit
  8. 15 Jan, 2009 8 commits
  9. 14 Jan, 2009 7 commits