[banshee] [libbanshee] Use decodebin2 for bpmdetector and transcoder



commit 1ba93535caf686b6d02b9d886215495b11bd3c71
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Sep 23 15:19:10 2010 -0500

    [libbanshee] Use decodebin2 for bpmdetector and transcoder

 libbanshee/banshee-bpmdetector.c |    6 +++---
 libbanshee/banshee-transcoder.c  |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libbanshee/banshee-bpmdetector.c b/libbanshee/banshee-bpmdetector.c
index b6e1c98..c06ffcb 100644
--- a/libbanshee/banshee-bpmdetector.c
+++ b/libbanshee/banshee-bpmdetector.c
@@ -50,7 +50,7 @@ struct BansheeBpmDetector {
 
     /*
      * You can run this pipeline on the cmd line with:
-     * gst-launch -m filesrc location=/path/to/my.mp3 ! decodebin ! \
+     * gst-launch -m filesrc location=/path/to/my.mp3 ! decodebin2 ! \
      *    audioconvert ! bpmdetect ! fakesink
      */
 
@@ -209,9 +209,9 @@ bbd_pipeline_construct (BansheeBpmDetector *detector)
         return FALSE;
     }
   
-    detector->decodebin = gst_element_factory_make ("decodebin", "decodebin");
+    detector->decodebin = gst_element_factory_make ("decodebin2", "decodebin2");
     if (detector->decodebin == NULL) {
-        bbd_raise_error (detector, _("Could not create decodebin plugin"), NULL);
+        bbd_raise_error (detector, _("Could not create decodebin2 plugin"), NULL);
         return FALSE;
     }
 
diff --git a/libbanshee/banshee-transcoder.c b/libbanshee/banshee-transcoder.c
index 824a723..6e2bd7b 100644
--- a/libbanshee/banshee-transcoder.c
+++ b/libbanshee/banshee-transcoder.c
@@ -241,9 +241,9 @@ gst_transcoder_create_pipeline(GstTranscoder *transcoder,
         return FALSE;
     }
 
-    decoder_elem = gst_element_factory_make("decodebin", "decodebin");
+    decoder_elem = gst_element_factory_make("decodebin2", "decodebin2");
     if(decoder_elem == NULL) {
-        gst_transcoder_raise_error(transcoder, _("Could not create 'decodebin' plugin"), NULL);
+        gst_transcoder_raise_error(transcoder, _("Could not create 'decodebin2' plugin"), NULL);
         return FALSE;
     }
     



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]