mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
audiotransition: Add a resampler in the audio transition bin
This commit is contained in:
parent
e02681ca2a
commit
a2f8dbd3d1
1 changed files with 4 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue