[brasero/f18] Backport a patch for renamed mpegaudioparse plugin in gstreamer1

Kalev Lember kalev at fedoraproject.org
Mon Jun 3 12:19:33 UTC 2013


commit 774e75b6d6d226597c2f4a9dd4937330aa325316
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Mon Jun 3 14:15:16 2013 +0200

    Backport a patch for renamed mpegaudioparse plugin in gstreamer1
    
    https://bugzilla.redhat.com/show_bug.cgi?id=883983

 brasero-3.6.1-mpegaudioparse.patch |   58 ++++++++++++++++++++++++++++++++++++
 brasero.spec                       |    7 ++++-
 2 files changed, 64 insertions(+), 1 deletions(-)
---
diff --git a/brasero-3.6.1-mpegaudioparse.patch b/brasero-3.6.1-mpegaudioparse.patch
new file mode 100644
index 0000000..e552e6b
--- /dev/null
+++ b/brasero-3.6.1-mpegaudioparse.patch
@@ -0,0 +1,58 @@
+From 895777890485428a23f2e0da0e8ccd2edf624f6e Mon Sep 17 00:00:00 2001
+From: Jeremy Bicha <jbicha at ubuntu.com>
+Date: Thu, 24 Jan 2013 22:26:10 -0500
+Subject: [PATCH] use mpegaudioparse gstreamer plugin instead of mp3parse
+
+Fix "not suitable for audio or video media" error when
+attempting to create a mp3 audio project
+The plugin was basically renamed for gstreamer 1.0.
+Thanks tuxor for identifying the problem!
+
+https://bugzilla.gnome.org/show_bug.cgi?id=687886
+---
+ libbrasero-utils/brasero-metadata.c | 4 ++--
+ plugins/transcode/burn-transcode.c  | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/libbrasero-utils/brasero-metadata.c b/libbrasero-utils/brasero-metadata.c
+index 1088121..7f10088 100644
+--- a/libbrasero-utils/brasero-metadata.c
++++ b/libbrasero-utils/brasero-metadata.c
+@@ -1200,12 +1200,12 @@ brasero_metadata_create_mp3_pipeline (BraseroMetadata *self)
+ 	}
+ 	gst_bin_add (GST_BIN (priv->pipeline_mp3), source);
+ 
+-	parse = gst_element_factory_make ("mp3parse", NULL);
++	parse = gst_element_factory_make ("mpegaudioparse", NULL);
+ 	if (!parse) {
+ 		priv->error = g_error_new (BRASERO_UTILS_ERROR,
+ 					   BRASERO_UTILS_ERROR_GENERAL,
+ 					   _("%s element could not be created"),
+-					   "\"mp3parse\"");
++					   "\"mpegaudioparse\"");
+ 
+ 		g_object_unref (priv->pipeline_mp3);
+ 		priv->pipeline_mp3 = NULL;
+diff --git a/plugins/transcode/burn-transcode.c b/plugins/transcode/burn-transcode.c
+index a6a0f40..6861168 100644
+--- a/plugins/transcode/burn-transcode.c
++++ b/plugins/transcode/burn-transcode.c
+@@ -284,13 +284,13 @@ brasero_transcode_create_pipeline_size_mp3 (BraseroTranscode *transcode,
+ 
+ 	BRASERO_JOB_LOG (transcode, "Creating specific pipeline for MP3s");
+ 
+-	parse = gst_element_factory_make ("mp3parse", NULL);
++	parse = gst_element_factory_make ("mpegaudioparse", NULL);
+ 	if (!parse) {
+ 		g_set_error (error,
+ 			     BRASERO_BURN_ERROR,
+ 			     BRASERO_BURN_ERROR_GENERAL,
+ 			     _("%s element could not be created"),
+-			     "\"Mp3parse\"");
++			     "\"mpegaudioparse\"");
+ 		g_object_unref (pipeline);
+ 		return FALSE;
+ 	}
+-- 
+1.8.2.1
+
diff --git a/brasero.spec b/brasero.spec
index 473df27..037ed38 100644
--- a/brasero.spec
+++ b/brasero.spec
@@ -1,7 +1,7 @@
 
 Name:      brasero
 Version:   3.6.1
-Release:   1%{?dist}
+Release:   2%{?dist}
 Summary:   Gnome CD/DVD burning application
 Group:     Applications/Multimedia
 # see https://bugzilla.gnome.org/show_bug.cgi?id=683503
@@ -52,6 +52,7 @@ Patch0: brasero-3.6.0-copy-BD.patch
 # from upstream
 Patch1: brasero-3.7.0-desktop-file-keywords.patch
 Patch2: brasero-3.7.0-gnome-common-warnings.patch
+Patch3: brasero-3.6.1-mpegaudioparse.patch
 
 
 Requires(post):    shared-mime-info
@@ -108,6 +109,7 @@ developing brasero applications.
 %patch0 -p1 -b .copy-BD
 %patch1 -p1 -b .desktop-file-keywords
 %patch2 -p1 -b .gnome-common-warnings
+%patch3 -p1 -b .mpegaudioparse
 
 
 %build
@@ -208,6 +210,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 
 %changelog
+* Mon Jun 03 2013 Kalev Lember <kalevlember at gmail.com> - 3.6.1-2
+- Backport a patch for renamed mpegaudioparse plugin in gstreamer1 (#883983)
+
 * Mon Nov 12 2012 Tomas Bzatek <tbzatek at redhat.com> - 3.6.1-1
 - Update to 3.6.1
 


More information about the scm-commits mailing list