From a2f8dbd3d1758d2be7d0a616ae93beab6a3b68ff Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Sun, 21 Apr 2013 21:35:22 +0200 Subject: [PATCH] audiotransition: Add a resampler in the audio transition bin --- ges/ges-audio-transition.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ges/ges-audio-transition.c b/ges/ges-audio-transition.c index 30482dc715..f566770d69 100644 --- a/ges/ges-audio-transition.c +++ b/ges/ges-audio-transition.c @@ -147,11 +147,14 @@ link_element_to_mixer_with_volume (GstBin * bin, GstElement * element, GstElement * mixer) { GstElement *volume = gst_element_factory_make ("volume", NULL); + GstElement *resample = gst_element_factory_make ("audioresample", NULL); gst_bin_add (bin, volume); + gst_bin_add (bin, resample); if (!fast_element_link (element, volume) || - !gst_element_link_pads_full (volume, "src", mixer, "sink_%u", + !fast_element_link (volume, resample) || + !gst_element_link_pads_full (resample, "src", mixer, "sink_%u", GST_PAD_LINK_CHECK_NOTHING)) GST_ERROR_OBJECT (bin, "Error linking volume to mixer");