summaryrefslogtreecommitdiff
path: root/tools/element-templates/audiofilter
diff options
context:
space:
mode:
Diffstat (limited to 'tools/element-templates/audiofilter')
-rw-r--r--tools/element-templates/audiofilter16
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/element-templates/audiofilter b/tools/element-templates/audiofilter
index 2d0929364..cf10fc120 100644
--- a/tools/element-templates/audiofilter
+++ b/tools/element-templates/audiofilter
@@ -12,15 +12,27 @@ gstreamer-audio-0.10
% prototypes
static gboolean
gst_replace_setup (GstAudioFilter * filter, GstRingBufferSpec * format);
+static GstFlowReturn
+gst_replace_transform_ip (GstBaseTransform * trans, GstBuffer * buf);
% declare-class
- GstAudioFilter *audio_filter_class = GST_AUDIO_FILTER (klass);
+ GstAudioFilterClass *audio_filter_class = GST_AUDIO_FILTER_CLASS (klass);
+ GstBaseTransformClass *base_transform_class = GST_BASE_TRANSFORM_CLASS (klass);
% set-methods
- audio_filter_class-> = GST_DEBUG_FUNCPTR (gst_replace_);
+ audio_filter_class->setup = GST_DEBUG_FUNCPTR (gst_replace_setup);
+ base_transform_class->transform_ip = GST_DEBUG_FUNCPTR (gst_replace_transform_ip);
% methods
static gboolean
gst_replace_setup (GstAudioFilter * filter, GstRingBufferSpec * format)
{
+ return TRUE;
+}
+
+static GstFlowReturn
+gst_replace_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
+{
+ return GST_FLOW_ERROR;
}
+
% end