summaryrefslogtreecommitdiff
path: root/tools/element-templates/basertppayload
diff options
context:
space:
mode:
Diffstat (limited to 'tools/element-templates/basertppayload')
-rw-r--r--tools/element-templates/basertppayload11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/element-templates/basertppayload b/tools/element-templates/basertppayload
index 1a5be183d..0f7d6547e 100644
--- a/tools/element-templates/basertppayload
+++ b/tools/element-templates/basertppayload
@@ -18,32 +18,39 @@ static gboolean gst_replace_handle_event (GstPad * pad, GstEvent * event);
static GstCaps *gst_replace_get_caps (GstBaseRTPPayload * payload,
GstPad * pad);
% declare-class
- GstBaseRTPPayload *base_rtppayload_class = GST_BASE_RTPPAYLOAD (klass);
+ GstBaseRTPPayloadClass *base_rtppayload_class = GST_BASE_RTP_PAYLOAD_CLASS (klass);
% set-methods
- base_rtppayload_class-> = GST_DEBUG_FUNCPTR (gst_replace_);
+ base_rtppayload_class->set_caps = GST_DEBUG_FUNCPTR (gst_replace_set_caps);
+ base_rtppayload_class->handle_buffer = GST_DEBUG_FUNCPTR (gst_replace_handle_buffer);
+ base_rtppayload_class->handle_event = GST_DEBUG_FUNCPTR (gst_replace_handle_event);
+ base_rtppayload_class->get_caps = GST_DEBUG_FUNCPTR (gst_replace_get_caps);
% methods
static gboolean
gst_replace_set_caps (GstBaseRTPPayload * payload, GstCaps * caps)
{
+ return FALSE;
}
static GstFlowReturn
gst_replace_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buffer)
{
+ return GST_FLOW_ERROR;
}
static gboolean
gst_replace_handle_event (GstPad * pad, GstEvent * event)
{
+ return FALSE;
}
static GstCaps *
gst_replace_get_caps (GstBaseRTPPayload * payload, GstPad * pad)
{
+ return NULL;
}
% end