Add patch to fix missing mp3 codec discovery. (#680809, #896018)

This commit is contained in:
Brian Pepple 2013-01-19 11:32:51 -06:00
parent ff8be5c4e7
commit 35a0f42034
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From d4e6ecc9799b05e20cd36ea6c5392380fb7f8cc2 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Fri, 3 Aug 2012 17:50:24 +0100
Subject: [PATCH] missing-plugins: Remove the mpegaudioversion field
From missing plugins requests as it's a duplicate of mpegversion
and its presence would break codec discovery when using RPM.
https://bugzilla.redhat.com/show_bug.cgi?id=680809
---
gst-libs/gst/pbutils/missing-plugins.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gst-libs/gst/pbutils/missing-plugins.c b/gst-libs/gst/pbutils/missing-plugins.c
index 1b6d44b..6b343c5 100644
--- a/gst-libs/gst/pbutils/missing-plugins.c
+++ b/gst-libs/gst/pbutils/missing-plugins.c
@@ -152,6 +152,9 @@ copy_and_clean_caps (const GstCaps * caps)
gst_structure_remove_field (s, "play-speed");
gst_structure_remove_field (s, "play-scale");
gst_structure_remove_field (s, "dynamic_range");
+ /* mpegaudioversion is a duplicate for mpegversion
+ * https://bugzilla.redhat.com/show_bug.cgi?id=680809 */
+ gst_structure_remove_field (s, "mpegaudioversion");
return ret;
}
--
1.7.10.2

View File

@ -2,12 +2,13 @@
Name: gstreamer1-plugins-base Name: gstreamer1-plugins-base
Version: 1.0.5 Version: 1.0.5
Release: 1%{?dist} Release: 2%{?dist}
Summary: GStreamer streaming media framework base plugins Summary: GStreamer streaming media framework base plugins
License: LGPLv2+ License: LGPLv2+
URL: http://gstreamer.freedesktop.org/ URL: http://gstreamer.freedesktop.org/
Source0: http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-%{version}.tar.xz Source0: http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-%{version}.tar.xz
Patch0: 0001-missing-plugins-Remove-the-mpegaudioversion-field.patch
BuildRequires: gstreamer1-devel >= %{version} BuildRequires: gstreamer1-devel >= %{version}
BuildRequires: gobject-introspection-devel >= 1.31.1 BuildRequires: gobject-introspection-devel >= 1.31.1
@ -87,6 +88,7 @@ for the GStreamer Base Plugins library.
%prep %prep
%setup -q -n gst-plugins-base-%{version} %setup -q -n gst-plugins-base-%{version}
%patch0 -p1
%build %build
@ -331,6 +333,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-discoverer-1.0
%changelog %changelog
* Fri Jan 18 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.0.5-2
- Add patch to fix missing mp3 codec discovery. (#680809, #896018)
* Tue Jan 8 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.0.5-1 * Tue Jan 8 2013 Brian Pepple <bpepple@fedoraproject.org> - 1.0.5-1
- Update to 1.0.5. - Update to 1.0.5.