summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-27 17:15:17 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-28 09:39:48 -0300
commit3b4492c7e76b44790a4380b77fcb54868f83e39d (patch)
treeb8448942bc2edf4dfac326cd3458207b11aa5bc2
parent04e05bff2300c7ca3455d3c2e520dc5063bc83b8 (diff)
audioconvert: audioresample: use template check for accept-caps
No need to do a find_transform() operation, they always accept the same as the template
-rw-r--r--gst/audioconvert/gstaudioconvert.c1
-rw-r--r--gst/audioresample/gstaudioresample.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c
index 634fd46e1..d17bbaf8f 100644
--- a/gst/audioconvert/gstaudioconvert.c
+++ b/gst/audioconvert/gstaudioconvert.c
@@ -232,6 +232,7 @@ gst_audio_convert_init (GstAudioConvert * this)
memset (&this->ctx, 0, sizeof (AudioConvertCtx));
gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM (this), TRUE);
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_TRANSFORM_SINK_PAD (this));
}
static void
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c
index 30825a6aa..02f47d299 100644
--- a/gst/audioresample/gstaudioresample.c
+++ b/gst/audioresample/gstaudioresample.c
@@ -221,6 +221,7 @@ gst_audio_resample_init (GstAudioResample * resample)
gst_base_transform_set_gap_aware (trans, TRUE);
gst_pad_set_query_function (trans->srcpad, gst_audio_resample_query);
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_TRANSFORM_SINK_PAD (resample));
}
/* vmethods */