mpd: Upgrade Music Player Daemon to 0.20.8
authorTed Hess <thess@kitschensync.net>
Sat, 20 May 2017 15:30:38 +0000 (11:30 -0400)
committerTed Hess <thess@kitschensync.net>
Sat, 20 May 2017 15:40:28 +0000 (11:40 -0400)
Signed-off-by: Ted Hess <thess@kitschensync.net>
sound/mpd/Makefile
sound/mpd/patches/210-support_raw_pcm_streams.patch
sound/mpd/patches/220-handle_slow_server_stream_startup.patch

index 162660ab0baa80ab4d481ee1b9f7bf54dd48502c..33138d19c2042d7e6b06badea807a88f8822165a 100644 (file)
@@ -1,6 +1,4 @@
 #
-# Copyright (C) 2015-2016 Ted Hess
-#
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
@@ -8,12 +6,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mpd
-PKG_VERSION:=0.19.19
-PKG_RELEASE:=2
+PKG_VERSION:=0.20.8
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_SOURCE_URL:=http://www.musicpd.org/download/mpd/0.19/
-PKG_MD5SUM:=6e4fca9a9c26dad08b61bac9a91802db
+PKG_SOURCE_URL:=http://www.musicpd.org/download/mpd/0.20/
+PKG_HASH:=7d177f29663c4a0997413401e52bbf11d2bb472773bbcf9294f839c4b8751e35
 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
 
 PKG_LICENSE:=GPL-2.0
@@ -102,6 +100,10 @@ define Package/mpd-avahi-service/conffiles
 /etc/avahi/services/mpd.service
 endef
 
+TARGET_CFLAGS += -ggdb3
+TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(if $(ICONV_FULL),-liconv)
+EXTRA_CXXFLAGS += $(if $(CONFIG_GCC_VERSION_4_8),-std=gnu++11,-std=gnu++14)
+
 CONFIGURE_ARGS += \
        $(call autoconf_bool,CONFIG_IPV6,ipv6) \
        --disable-debug \
@@ -156,8 +158,6 @@ CONFIGURE_VARS += \
        $(if $(CONFIG_BUILD_PATENTED),MAD_CFLAGS="$(TARGET_CFLAGS)") \
        $(if $(CONFIG_BUILD_PATENTED),MAD_LIBS="$(TARGET_LDFLAGS) -lmad") \
 
-TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(if $(ICONV_FULL),-liconv)
-
 ifeq ($(BUILD_VARIANT),full)
 
   CONFIGURE_ARGS += \
@@ -167,16 +167,14 @@ ifeq ($(BUILD_VARIANT),full)
        --enable-fifo \
        --enable-ffmpeg \
        --enable-id3 \
-       --enable-lastfm \
        --enable-mms \
-       --enable-oggflac \
+       --enable-flac \
        --enable-pipe-output \
        --enable-recorder-output \
        --disable-shout \
        --enable-sndfile \
        --enable-vorbis \
        --disable-vorbis-encoder \
-       --with-faad="$(STAGING_DIR)/usr" \
        --with-tremor=yes \
 
 endif
index 275657061f79a457294448fcb4c9c0c03ac35a4f..e06e232b2380129bdf2d56f24a01700bbbc887d9 100644 (file)
@@ -1,6 +1,6 @@
 --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
 +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
-@@ -777,6 +777,7 @@ static const char *const ffmpeg_mime_typ
+@@ -930,6 +930,7 @@ static const char *const ffmpeg_mime_typ
        "audio/qcelp",
        "audio/vorbis",
        "audio/vorbis+ogg",
index 2ebb91cc0dd2c8d381ea6c1ea50ac17023bcd8be..e0d099e46e22d21138ed9183df1451f7a47a19e4 100644 (file)
@@ -1,16 +1,16 @@
 --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
 +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
-@@ -465,6 +465,13 @@ ffmpeg_probe(Decoder *decoder, InputStre
+@@ -478,6 +478,13 @@ ffmpeg_probe(DecoderClient *client, Inpu
  
        unsigned char buffer[BUFFER_SIZE];
-       size_t nbytes = decoder_read(decoder, is, buffer, BUFFER_SIZE);
+       size_t nbytes = decoder_read(client, is, buffer, BUFFER_SIZE);
 +
 +      if ((nbytes > 0) && (nbytes < 1024))
 +      {
 +              // Gobble some more data if header is small
-+              nbytes += decoder_read(decoder, is, buffer + nbytes, BUFFER_SIZE - nbytes);
++              nbytes += decoder_read(client, is, buffer + nbytes, BUFFER_SIZE - nbytes);
 +      }
 +
-       if (nbytes <= PADDING || !is.LockRewind(IgnoreError()))
+       if (nbytes <= PADDING)
                return nullptr;