mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 02:46:33 +00:00
795bf6c53b
Use the object class and not the object in the init function. Set the vmethods. Add default returns.
68 lines
1.8 KiB
C
68 lines
1.8 KiB
C
/* vim: set filetype=c: */
|
|
% ClassName
|
|
GstBaseRTPDepayload
|
|
% TYPE_CLASS_NAME
|
|
GST_TYPE_BASE_RTP_DEPAYLOAD
|
|
% pads
|
|
sinkpad-simple srcpad-simple
|
|
% pkg-config
|
|
gstreamer-rtp-0.10
|
|
% includes
|
|
#include <gst/rtp/gstbasertpdepayload.h>
|
|
% prototypes
|
|
static gboolean
|
|
gst_replace_set_caps (GstBaseRTPDepayload * filter, GstCaps * caps);
|
|
static GstFlowReturn
|
|
gst_replace_add_to_queue (GstBaseRTPDepayload * filter, GstBuffer * in);
|
|
static GstBuffer *gst_replace_process (GstBaseRTPDepayload * base,
|
|
GstBuffer * in);
|
|
static void
|
|
gst_replace_set_gst_timestamp (GstBaseRTPDepayload * filter, guint32 timestamp,
|
|
GstBuffer * buf);
|
|
static gboolean
|
|
gst_replace_packet_lost (GstBaseRTPDepayload * filter, GstEvent * event);
|
|
% declare-class
|
|
GstBaseRTPDepayloadClass *base_rtpdepayload_class = GST_BASE_RTP_DEPAYLOAD_CLASS (klass);
|
|
% set-methods
|
|
base_rtpdepayload_class->set_caps = GST_DEBUG_FUNCPTR (gst_replace_set_caps);
|
|
base_rtpdepayload_class->add_to_queue = GST_DEBUG_FUNCPTR (gst_replace_add_to_queue);
|
|
base_rtpdepayload_class->process = GST_DEBUG_FUNCPTR (gst_replace_process);
|
|
base_rtpdepayload_class->set_gst_timestamp = GST_DEBUG_FUNCPTR (gst_replace_set_gst_timestamp);
|
|
base_rtpdepayload_class->packet_lost = GST_DEBUG_FUNCPTR (gst_replace_packet_lost);
|
|
% methods
|
|
|
|
static gboolean
|
|
gst_replace_set_caps (GstBaseRTPDepayload * filter, GstCaps * caps)
|
|
{
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
static GstFlowReturn
|
|
gst_replace_add_to_queue (GstBaseRTPDepayload * filter, GstBuffer * in)
|
|
{
|
|
|
|
return GST_FLOW_ERROR;
|
|
}
|
|
|
|
static GstBuffer *
|
|
gst_replace_process (GstBaseRTPDepayload * base, GstBuffer * in)
|
|
{
|
|
|
|
return NULL;
|
|
}
|
|
|
|
static void
|
|
gst_replace_set_gst_timestamp (GstBaseRTPDepayload * filter, guint32 timestamp,
|
|
GstBuffer * buf)
|
|
{
|
|
|
|
}
|
|
|
|
static gboolean
|
|
gst_replace_packet_lost (GstBaseRTPDepayload * filter, GstEvent * event)
|
|
{
|
|
|
|
return FALSE;
|
|
}
|
|
% end
|