summaryrefslogtreecommitdiff
path: root/tools/element-templates/basertpdepayload
blob: b91d1c2fb8423e35a0080148077b839e02a12f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* 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