1 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <slomo@circular-chaos.org>
2 Date: Tue, 28 May 2013 11:36:04 +0200
3 Subject: Don't use the new-decoded-pad signal of decodebin
5 It is not available anymore in 1.0 and pad-added should be used.
7 libbanshee/banshee-bpmdetector.c | 8 ++++----
8 libbanshee/banshee-transcoder.c | 8 ++++----
9 2 files changed, 8 insertions(+), 8 deletions(-)
11 diff --git a/libbanshee/banshee-bpmdetector.c b/libbanshee/banshee-bpmdetector.c
12 index 68b0419..131d2e5 100644
13 --- a/libbanshee/banshee-bpmdetector.c
14 +++ b/libbanshee/banshee-bpmdetector.c
15 @@ -159,8 +159,8 @@ bbd_pipeline_bus_callback (GstBus *bus, GstMessage *message, gpointer data)
19 -bbd_new_decoded_pad(GstElement *decodebin, GstPad *pad,
20 - gboolean last, gpointer data)
21 +bbd_pad_added(GstElement *decodebin, GstPad *pad,
26 @@ -244,8 +244,8 @@ bbd_pipeline_construct (BansheeBpmDetector *detector)
29 // decodebin and audioconvert are linked dynamically when the decodebin creates a new pad
30 - g_signal_connect(detector->decodebin, "new-decoded-pad",
31 - G_CALLBACK(bbd_new_decoded_pad), detector);
32 + g_signal_connect(detector->decodebin, "pad-added",
33 + G_CALLBACK(bbd_pad_added), detector);
35 if (!gst_element_link_many (detector->audioconvert, detector->bpmdetect, detector->fakesink, NULL)) {
36 bbd_raise_error (detector, _("Could not link pipeline elements"), NULL);
37 diff --git a/libbanshee/banshee-transcoder.c b/libbanshee/banshee-transcoder.c
38 index 0e241f0..f678838 100644
39 --- a/libbanshee/banshee-transcoder.c
40 +++ b/libbanshee/banshee-transcoder.c
41 @@ -185,8 +185,8 @@ gst_transcoder_build_encoder(const gchar *encoder_pipeline)
45 -gst_transcoder_new_decoded_pad(GstElement *decodebin, GstPad *pad,
46 - gboolean last, gpointer data)
47 +gst_transcoder_pad_added(GstElement *decodebin, GstPad *pad,
52 @@ -293,8 +293,8 @@ gst_transcoder_create_pipeline(GstTranscoder *transcoder,
54 gst_element_link(source_elem, decoder_elem);
56 - g_signal_connect(decoder_elem, "new-decoded-pad",
57 - G_CALLBACK(gst_transcoder_new_decoded_pad), transcoder);
58 + g_signal_connect(decoder_elem, "pad-added",
59 + G_CALLBACK(gst_transcoder_pad_added), transcoder);
61 gst_bus_add_watch(gst_pipeline_get_bus(GST_PIPELINE(transcoder->pipeline)),
62 gst_transcoder_bus_callback, transcoder);