~ubuntu-branches/ubuntu/raring/brasero/raring-proposed

« back to all changes in this revision

Viewing changes to debian/patches/99_fix-mp3-projects.patch

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-01-24 23:07:10 UTC
  • Revision ID: package-import@ubuntu.com-20130124230710-ik50o2gfst5s6qa1
Tags: 3.6.1-0ubuntu2
* 99_fix-mp3-projects.patch:
  - Bugzilla patch to fix "not suitable for audio or video media"
    error when trying to create a mp3 audio project (LP: #1072151)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From d2397f18e2fa082955ce10f5ef9cec68dafc5367 Mon Sep 17 00:00:00 2001
 
2
From: Jeremy Bicha <jbicha@ubuntu.com>
 
3
Date: Thu, 24 Jan 2013 22:26:10 -0500
 
4
Subject: [PATCH] use mpegaudioparse gstreamer plugin instead of mp3parse
 
5
 
 
6
Fix "not suitable for audio or video media" error when
 
7
attempting to create a mp3 audio project
 
8
The plugin was basically renamed for gstreamer 1.0.
 
9
Thanks tuxor for identifying the problem!
 
10
 
 
11
https://bugzilla.gnome.org/show_bug.cgi?id=687886
 
12
---
 
13
 libbrasero-utils/brasero-metadata.c | 4 ++--
 
14
 plugins/transcode/burn-transcode.c  | 4 ++--
 
15
 2 files changed, 4 insertions(+), 4 deletions(-)
 
16
 
 
17
diff --git a/libbrasero-utils/brasero-metadata.c b/libbrasero-utils/brasero-metadata.c
 
18
index 1088121..7f10088 100644
 
19
--- a/libbrasero-utils/brasero-metadata.c
 
20
+++ b/libbrasero-utils/brasero-metadata.c
 
21
@@ -1200,12 +1200,12 @@ brasero_metadata_create_mp3_pipeline (BraseroMetadata *self)
 
22
        }
 
23
        gst_bin_add (GST_BIN (priv->pipeline_mp3), source);
 
24
 
 
25
-       parse = gst_element_factory_make ("mp3parse", NULL);
 
26
+       parse = gst_element_factory_make ("mpegaudioparse", NULL);
 
27
        if (!parse) {
 
28
                priv->error = g_error_new (BRASERO_UTILS_ERROR,
 
29
                                           BRASERO_UTILS_ERROR_GENERAL,
 
30
                                           _("%s element could not be created"),
 
31
-                                          "\"mp3parse\"");
 
32
+                                          "\"mpegaudioparse\"");
 
33
 
 
34
                g_object_unref (priv->pipeline_mp3);
 
35
                priv->pipeline_mp3 = NULL;
 
36
diff --git a/plugins/transcode/burn-transcode.c b/plugins/transcode/burn-transcode.c
 
37
index a6a0f40..6861168 100644
 
38
--- a/plugins/transcode/burn-transcode.c
 
39
+++ b/plugins/transcode/burn-transcode.c
 
40
@@ -284,13 +284,13 @@ brasero_transcode_create_pipeline_size_mp3 (BraseroTranscode *transcode,
 
41
 
 
42
        BRASERO_JOB_LOG (transcode, "Creating specific pipeline for MP3s");
 
43
 
 
44
-       parse = gst_element_factory_make ("mp3parse", NULL);
 
45
+       parse = gst_element_factory_make ("mpegaudioparse", NULL);
 
46
        if (!parse) {
 
47
                g_set_error (error,
 
48
                             BRASERO_BURN_ERROR,
 
49
                             BRASERO_BURN_ERROR_GENERAL,
 
50
                             _("%s element could not be created"),
 
51
-                            "\"Mp3parse\"");
 
52
+                            "\"mpegaudioparse\"");
 
53
                g_object_unref (pipeline);
 
54
                return FALSE;
 
55
        }