2010-12-15 20:45:38 +00:00
|
|
|
/* vim: set filetype=c: */
|
2010-04-14 23:32:34 +00:00
|
|
|
% ClassName
|
|
|
|
GstBaseRTPPayload
|
|
|
|
% TYPE_CLASS_NAME
|
|
|
|
GST_TYPE_BASE_RTP_PAYLOAD
|
2010-12-15 03:03:09 +00:00
|
|
|
% pads
|
|
|
|
sinkpad-simple srcpad-simple
|
2010-04-14 23:32:34 +00:00
|
|
|
% pkg-config
|
|
|
|
gstreamer-rtp-0.10
|
|
|
|
% includes
|
|
|
|
#include <gst/rtp/gstbasertppayload.h>
|
|
|
|
% prototypes
|
|
|
|
static gboolean
|
|
|
|
gst_replace_set_caps (GstBaseRTPPayload * payload, GstCaps * caps);
|
|
|
|
static GstFlowReturn
|
|
|
|
gst_replace_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buffer);
|
|
|
|
static gboolean gst_replace_handle_event (GstPad * pad, GstEvent * event);
|
|
|
|
static GstCaps *gst_replace_get_caps (GstBaseRTPPayload * payload,
|
|
|
|
GstPad * pad);
|
|
|
|
% declare-class
|
2011-04-26 11:10:05 +00:00
|
|
|
GstBaseRTPPayloadClass *base_rtppayload_class = GST_BASE_RTP_PAYLOAD_CLASS (klass);
|
2010-04-14 23:32:34 +00:00
|
|
|
% set-methods
|
2011-04-26 11:10:05 +00:00
|
|
|
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);
|
2010-04-14 23:32:34 +00:00
|
|
|
% methods
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
gst_replace_set_caps (GstBaseRTPPayload * payload, GstCaps * caps)
|
|
|
|
{
|
|
|
|
|
2011-04-26 11:10:05 +00:00
|
|
|
return FALSE;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static GstFlowReturn
|
|
|
|
gst_replace_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buffer)
|
|
|
|
{
|
|
|
|
|
2011-04-26 11:10:05 +00:00
|
|
|
return GST_FLOW_ERROR;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
gst_replace_handle_event (GstPad * pad, GstEvent * event)
|
|
|
|
{
|
|
|
|
|
2011-04-26 11:10:05 +00:00
|
|
|
return FALSE;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static GstCaps *
|
|
|
|
gst_replace_get_caps (GstBaseRTPPayload * payload, GstPad * pad)
|
|
|
|
{
|
|
|
|
|
2011-04-26 11:10:05 +00:00
|
|
|
return NULL;
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
% end
|