summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2011-03-12 09:11:38 +0000
committerNirbheek Chauhan <nirbheek@gentoo.org>2011-03-12 09:11:38 +0000
commitf4c74d154b3b652bcea2758d66c7226a2721a70e (patch)
tree4df86c6adfde6a95177f4f28e4a7925f94b36a0c /media-libs/gstreamer
parentUse slot dep for gtk+. (diff)
downloadgentoo-2-f4c74d154b3b652bcea2758d66c7226a2721a70e.tar.gz
gentoo-2-f4c74d154b3b652bcea2758d66c7226a2721a70e.tar.bz2
gentoo-2-f4c74d154b3b652bcea2758d66c7226a2721a70e.zip
Fix audio problems with voice and video calling, patch taken from upstream: https://bugzilla.gnome.org/show_bug.cgi?id=643455
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/gstreamer')
-rw-r--r--media-libs/gstreamer/ChangeLog10
-rw-r--r--media-libs/gstreamer/files/gstreamer-0.10.32-fix-valve-drops.patch22
-rw-r--r--media-libs/gstreamer/gstreamer-0.10.32-r1.ebuild63
3 files changed, 94 insertions, 1 deletions
diff --git a/media-libs/gstreamer/ChangeLog b/media-libs/gstreamer/ChangeLog
index 0c0445136193..cd785130fba2 100644
--- a/media-libs/gstreamer/ChangeLog
+++ b/media-libs/gstreamer/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-libs/gstreamer
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/ChangeLog,v 1.285 2011/03/05 17:28:39 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/ChangeLog,v 1.286 2011/03/12 09:11:38 nirbheek Exp $
+
+*gstreamer-0.10.32-r1 (12 Mar 2011)
+
+ 12 Mar 2011; Nirbheek Chauhan <nirbheek@gentoo.org>
+ +gstreamer-0.10.32-r1.ebuild,
+ +files/gstreamer-0.10.32-fix-valve-drops.patch:
+ Fix audio problems with voice and video calling, patch taken from
+ upstream: https://bugzilla.gnome.org/show_bug.cgi?id=643455
05 Mar 2011; Raúl Porcel <armin76@gentoo.org> gstreamer-0.10.31.ebuild:
alpha/ia64/sh/sparc stable wrt #353434
diff --git a/media-libs/gstreamer/files/gstreamer-0.10.32-fix-valve-drops.patch b/media-libs/gstreamer/files/gstreamer-0.10.32-fix-valve-drops.patch
new file mode 100644
index 000000000000..50e499522f3a
--- /dev/null
+++ b/media-libs/gstreamer/files/gstreamer-0.10.32-fix-valve-drops.patch
@@ -0,0 +1,22 @@
+From 2cfc7adcb11b9ada2b087d3dc5c0fc43214bf9cd Mon Sep 17 00:00:00 2001
+From: Olivier Crête <olivier.crete@collabora.co.uk>
+Date: Fri, 28 Jan 2011 20:36:33 +0000
+Subject: valve: Only set discont on the first buffer after drops
+
+Reset the discont member after setting discont on the first buffer after
+dropping.
+---
+diff --git a/plugins/elements/gstvalve.c b/plugins/elements/gstvalve.c
+index fdc175f..ae905f4 100644
+--- a/plugins/elements/gstvalve.c
++++ b/plugins/elements/gstvalve.c
+@@ -184,6 +184,7 @@ gst_valve_chain (GstPad * pad, GstBuffer * buffer)
+ if (valve->discont) {
+ buffer = gst_buffer_make_metadata_writable (buffer);
+ GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DISCONT);
++ valve->discont = FALSE;
+ }
+
+ ret = gst_pad_push (valve->srcpad, buffer);
+--
+cgit v0.8.3-6-g21f6
diff --git a/media-libs/gstreamer/gstreamer-0.10.32-r1.ebuild b/media-libs/gstreamer/gstreamer-0.10.32-r1.ebuild
new file mode 100644
index 000000000000..c0ccadf5a5be
--- /dev/null
+++ b/media-libs/gstreamer/gstreamer-0.10.32-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/gstreamer-0.10.32-r1.ebuild,v 1.1 2011/03/12 09:11:38 nirbheek Exp $
+
+EAPI=2
+
+inherit eutils multilib versionator
+
+# Create a major/minor combo for our SLOT and executables suffix
+PV_MAJ_MIN=$(get_version_component_range '1-2')
+
+DESCRIPTION="Streaming media framework"
+HOMEPAGE="http://gstreamer.sourceforge.net"
+SRC_URI="http://${PN}.freedesktop.org/src/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT=${PV_MAJ_MIN}
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="+introspection nls test"
+
+RDEPEND=">=dev-libs/glib-2.22:2
+ dev-libs/libxml2
+ introspection? ( >=dev-libs/gobject-introspection-0.6.3 )
+ !<media-libs/gst-plugins-base-0.10.26"
+ # ^^ queue2 move, mustn't have both libgstcoreleements.so and libgstqueue2.so at runtime providing the element at once
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext )"
+ # dev-util/gtk-doc-am # Only if eautoreconf'ing
+
+src_configure() {
+ # Disable static archives, dependency tracking and examples
+ # to speed up build time
+ econf \
+ --disable-static \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ --disable-valgrind \
+ --disable-examples \
+ --enable-check \
+ $(use_enable introspection) \
+ $(use_enable test tests) \
+ --with-package-name="GStreamer ebuild for Gentoo" \
+ --with-package-origin="http://packages.gentoo.org/package/media-libs/gstreamer"
+}
+
+src_prepare() {
+ # Fix voice/video calling: taken from upstream, drop for next release
+ epatch "${FILESDIR}/${P}-fix-valve-drops.patch"
+ default_src_prepare
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc AUTHORS ChangeLog NEWS MAINTAINERS README RELEASE
+
+ # Remove unversioned binaries to allow SLOT installations in future
+ cd "${D}"/usr/bin
+ local gst_bins
+ for gst_bins in $(ls *-${PV_MAJ_MIN}); do
+ rm -f ${gst_bins/-${PV_MAJ_MIN}/}
+ done
+}