mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
gst/rtp/: Remove copy/paste unused code (property setters and getter) found by the coverage suite (yay, saves ~20k on...
Original commit message from CVS: * gst/rtp/gstasteriskh263.c: * gst/rtp/gstrtpL16depay.c: * gst/rtp/gstrtpac3depay.c: * gst/rtp/gstrtpamrpay.c: * gst/rtp/gstrtpdepay.c: * gst/rtp/gstrtpgsmdepay.c: * gst/rtp/gstrtph263depay.c: * gst/rtp/gstrtph263pdepay.c: * gst/rtp/gstrtph263ppay.c: * gst/rtp/gstrtph264depay.c: * gst/rtp/gstrtph264pay.c: * gst/rtp/gstrtpmp2tdepay.c: * gst/rtp/gstrtpmp4adepay.c: * gst/rtp/gstrtpmp4gdepay.c: * gst/rtp/gstrtpmp4gpay.c: * gst/rtp/gstrtpmp4vdepay.c: * gst/rtp/gstrtpmpadepay.c: * gst/rtp/gstrtpmpvdepay.c: * gst/rtp/gstrtpsv3vdepay.c: * gst/rtp/gstrtptheoradepay.c: * gst/rtp/gstrtptheorapay.c: * gst/rtp/gstrtpvorbisdepay.c: * gst/rtp/gstrtpvorbispay.c: Remove copy/paste unused code (property setters and getter) found by the coverage suite (yay, saves ~20k on disk).
This commit is contained in:
parent
a895112c29
commit
e7f919986a
24 changed files with 96 additions and 886 deletions
28
ChangeLog
28
ChangeLog
|
@ -1,3 +1,31 @@
|
||||||
|
2008-01-09 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* gst/rtp/gstasteriskh263.c:
|
||||||
|
* gst/rtp/gstrtpL16depay.c:
|
||||||
|
* gst/rtp/gstrtpac3depay.c:
|
||||||
|
* gst/rtp/gstrtpamrpay.c:
|
||||||
|
* gst/rtp/gstrtpdepay.c:
|
||||||
|
* gst/rtp/gstrtpgsmdepay.c:
|
||||||
|
* gst/rtp/gstrtph263depay.c:
|
||||||
|
* gst/rtp/gstrtph263pdepay.c:
|
||||||
|
* gst/rtp/gstrtph263ppay.c:
|
||||||
|
* gst/rtp/gstrtph264depay.c:
|
||||||
|
* gst/rtp/gstrtph264pay.c:
|
||||||
|
* gst/rtp/gstrtpmp2tdepay.c:
|
||||||
|
* gst/rtp/gstrtpmp4adepay.c:
|
||||||
|
* gst/rtp/gstrtpmp4gdepay.c:
|
||||||
|
* gst/rtp/gstrtpmp4gpay.c:
|
||||||
|
* gst/rtp/gstrtpmp4vdepay.c:
|
||||||
|
* gst/rtp/gstrtpmpadepay.c:
|
||||||
|
* gst/rtp/gstrtpmpvdepay.c:
|
||||||
|
* gst/rtp/gstrtpsv3vdepay.c:
|
||||||
|
* gst/rtp/gstrtptheoradepay.c:
|
||||||
|
* gst/rtp/gstrtptheorapay.c:
|
||||||
|
* gst/rtp/gstrtpvorbisdepay.c:
|
||||||
|
* gst/rtp/gstrtpvorbispay.c:
|
||||||
|
Remove copy/paste unused code (property setters and getter) found by
|
||||||
|
the coverage suite (yay, saves ~20k on disk).
|
||||||
|
|
||||||
2008-01-08 Tim-Philipp Müller <tim at centricular dot net>
|
2008-01-08 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/matroska/matroska-mux.c: (COMMON_VIDEO_CAPS_NO_FRAMERATE),
|
* gst/matroska/matroska-mux.c: (COMMON_VIDEO_CAPS_NO_FRAMERATE),
|
||||||
|
|
|
@ -54,19 +54,6 @@ GST_ELEMENT_DETAILS ("RTP packet parser",
|
||||||
"Extracts H263 video from RTP and encodes in Asterisk H263 format",
|
"Extracts H263 video from RTP and encodes in Asterisk H263 format",
|
||||||
"Neil Stratford <neils@vipadia.com>");
|
"Neil Stratford <neils@vipadia.com>");
|
||||||
|
|
||||||
/* Asteriskh263 signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
ARG_FREQUENCY
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_asteriskh263_src_template =
|
static GstStaticPadTemplate gst_asteriskh263_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -91,11 +78,6 @@ static void gst_asteriskh263_finalize (GObject * object);
|
||||||
|
|
||||||
static GstFlowReturn gst_asteriskh263_chain (GstPad * pad, GstBuffer * buffer);
|
static GstFlowReturn gst_asteriskh263_chain (GstPad * pad, GstBuffer * buffer);
|
||||||
|
|
||||||
static void gst_asteriskh263_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_asteriskh263_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_asteriskh263_change_state (GstElement *
|
static GstStateChangeReturn gst_asteriskh263_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
|
||||||
|
@ -152,9 +134,6 @@ gst_asteriskh263_class_init (GstAsteriskh263Class * klass)
|
||||||
|
|
||||||
gobject_class->finalize = gst_asteriskh263_finalize;
|
gobject_class->finalize = gst_asteriskh263_finalize;
|
||||||
|
|
||||||
gobject_class->set_property = gst_asteriskh263_set_property;
|
|
||||||
gobject_class->get_property = gst_asteriskh263_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_asteriskh263_change_state;
|
gstelement_class->change_state = gst_asteriskh263_change_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,36 +230,6 @@ bad_packet:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_asteriskh263_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstAsteriskh263 *asteriskh263;
|
|
||||||
|
|
||||||
asteriskh263 = GST_ASTERISK_H263 (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_asteriskh263_get_property (GObject * object, guint prop_id, GValue * value,
|
|
||||||
GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstAsteriskh263 *asteriskh263;
|
|
||||||
|
|
||||||
asteriskh263 = GST_ASTERISK_H263 (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_asteriskh263_change_state (GstElement * element, GstStateChange transition)
|
gst_asteriskh263_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
|
@ -290,8 +239,6 @@ gst_asteriskh263_change_state (GstElement * element, GstStateChange transition)
|
||||||
asteriskh263 = GST_ASTERISK_H263 (element);
|
asteriskh263 = GST_ASTERISK_H263 (element);
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
case GST_STATE_CHANGE_NULL_TO_READY:
|
|
||||||
break;
|
|
||||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||||
gst_adapter_clear (asteriskh263->adapter);
|
gst_adapter_clear (asteriskh263->adapter);
|
||||||
break;
|
break;
|
||||||
|
@ -301,12 +248,14 @@ gst_asteriskh263_change_state (GstElement * element, GstStateChange transition)
|
||||||
|
|
||||||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||||
|
|
||||||
switch (transition) {
|
/*
|
||||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
switch (transition) {
|
||||||
break;
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
*/
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,17 +36,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts raw audio from RTP packets",
|
"Extracts raw audio from RTP packets",
|
||||||
"Zeeshan Ali <zak147@yahoo.com>," "Wim Taymans <wim@fluendo.com>");
|
"Zeeshan Ali <zak147@yahoo.com>," "Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpL16Depay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_L16_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_L16_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -89,11 +78,6 @@ static gboolean gst_rtp_L16_depay_setcaps (GstBaseRTPDepayload * depayload,
|
||||||
static GstBuffer *gst_rtp_L16_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_L16_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static void gst_rtp_L16_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_L16_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_L16_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_L16_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
|
||||||
|
@ -113,19 +97,14 @@ gst_rtp_L16_depay_base_init (gpointer klass)
|
||||||
static void
|
static void
|
||||||
gst_rtp_L16_depay_class_init (GstRtpL16DepayClass * klass)
|
gst_rtp_L16_depay_class_init (GstRtpL16DepayClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
|
||||||
GstElementClass *gstelement_class;
|
GstElementClass *gstelement_class;
|
||||||
GstBaseRTPDepayloadClass *gstbasertpdepayload_class;
|
GstBaseRTPDepayloadClass *gstbasertpdepayload_class;
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
|
||||||
gstelement_class = (GstElementClass *) klass;
|
gstelement_class = (GstElementClass *) klass;
|
||||||
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_L16_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_L16_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_L16_depay_change_state;
|
gstelement_class->change_state = gst_rtp_L16_depay_change_state;
|
||||||
|
|
||||||
gstbasertpdepayload_class->set_caps = gst_rtp_L16_depay_setcaps;
|
gstbasertpdepayload_class->set_caps = gst_rtp_L16_depay_setcaps;
|
||||||
|
@ -139,6 +118,7 @@ static void
|
||||||
gst_rtp_L16_depay_init (GstRtpL16Depay * rtpL16depay,
|
gst_rtp_L16_depay_init (GstRtpL16Depay * rtpL16depay,
|
||||||
GstRtpL16DepayClass * klass)
|
GstRtpL16DepayClass * klass)
|
||||||
{
|
{
|
||||||
|
/* needed because of GST_BOILERPLATE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
|
@ -250,36 +230,6 @@ empty_packet:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_L16_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpL16Depay *rtpL16depay;
|
|
||||||
|
|
||||||
rtpL16depay = GST_RTP_L16_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_L16_depay_get_property (GObject * object, guint prop_id, GValue * value,
|
|
||||||
GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpL16Depay *rtpL16depay;
|
|
||||||
|
|
||||||
rtpL16depay = GST_RTP_L16_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_L16_depay_change_state (GstElement * element, GstStateChange transition)
|
gst_rtp_L16_depay_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
|
@ -288,21 +238,25 @@ gst_rtp_L16_depay_change_state (GstElement * element, GstStateChange transition)
|
||||||
|
|
||||||
rtpL16depay = GST_RTP_L16_DEPAY (element);
|
rtpL16depay = GST_RTP_L16_DEPAY (element);
|
||||||
|
|
||||||
switch (transition) {
|
/*
|
||||||
case GST_STATE_CHANGE_NULL_TO_READY:
|
switch (transition) {
|
||||||
break;
|
case GST_STATE_CHANGE_NULL_TO_READY:
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||||
|
|
||||||
switch (transition) {
|
/*
|
||||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
switch (transition) {
|
||||||
break;
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
*/
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,18 +36,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts AC3 audio from RTP packets (RFC 4184)",
|
"Extracts AC3 audio from RTP packets (RFC 4184)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpAC3Depay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_ac3_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_ac3_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -74,11 +62,6 @@ static gboolean gst_rtp_ac3_depay_setcaps (GstBaseRTPDepayload * depayload,
|
||||||
static GstBuffer *gst_rtp_ac3_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_ac3_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static void gst_rtp_ac3_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_ac3_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_ac3_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_ac3_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
|
||||||
|
@ -98,19 +81,14 @@ gst_rtp_ac3_depay_base_init (gpointer klass)
|
||||||
static void
|
static void
|
||||||
gst_rtp_ac3_depay_class_init (GstRtpAC3DepayClass * klass)
|
gst_rtp_ac3_depay_class_init (GstRtpAC3DepayClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
|
||||||
GstElementClass *gstelement_class;
|
GstElementClass *gstelement_class;
|
||||||
GstBaseRTPDepayloadClass *gstbasertpdepayload_class;
|
GstBaseRTPDepayloadClass *gstbasertpdepayload_class;
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
|
||||||
gstelement_class = (GstElementClass *) klass;
|
gstelement_class = (GstElementClass *) klass;
|
||||||
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_ac3_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_ac3_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_ac3_depay_change_state;
|
gstelement_class->change_state = gst_rtp_ac3_depay_change_state;
|
||||||
|
|
||||||
gstbasertpdepayload_class->set_caps = gst_rtp_ac3_depay_setcaps;
|
gstbasertpdepayload_class->set_caps = gst_rtp_ac3_depay_setcaps;
|
||||||
|
@ -124,6 +102,7 @@ static void
|
||||||
gst_rtp_ac3_depay_init (GstRtpAC3Depay * rtpac3depay,
|
gst_rtp_ac3_depay_init (GstRtpAC3Depay * rtpac3depay,
|
||||||
GstRtpAC3DepayClass * klass)
|
GstRtpAC3DepayClass * klass)
|
||||||
{
|
{
|
||||||
|
/* needed because of GST_BOILERPLATE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -261,36 +240,6 @@ empty_packet:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_ac3_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpAC3Depay *rtpac3depay;
|
|
||||||
|
|
||||||
rtpac3depay = GST_RTP_AC3_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_ac3_depay_get_property (GObject * object, guint prop_id, GValue * value,
|
|
||||||
GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpAC3Depay *rtpac3depay;
|
|
||||||
|
|
||||||
rtpac3depay = GST_RTP_AC3_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_ac3_depay_change_state (GstElement * element, GstStateChange transition)
|
gst_rtp_ac3_depay_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
|
@ -299,21 +248,25 @@ gst_rtp_ac3_depay_change_state (GstElement * element, GstStateChange transition)
|
||||||
|
|
||||||
rtpac3depay = GST_RTP_AC3_DEPAY (element);
|
rtpac3depay = GST_RTP_AC3_DEPAY (element);
|
||||||
|
|
||||||
switch (transition) {
|
/*
|
||||||
case GST_STATE_CHANGE_NULL_TO_READY:
|
switch (transition) {
|
||||||
break;
|
case GST_STATE_CHANGE_NULL_TO_READY:
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||||
|
|
||||||
switch (transition) {
|
/*
|
||||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
switch (transition) {
|
||||||
break;
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
*/
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,7 @@ gst_rtp_amr_pay_class_init (GstRtpAMRPayClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_rtp_amr_pay_init (GstRtpAMRPay * rtpamrpay, GstRtpAMRPayClass * klass)
|
gst_rtp_amr_pay_init (GstRtpAMRPay * rtpamrpay, GstRtpAMRPayClass * klass)
|
||||||
{
|
{
|
||||||
|
/* needed because of GST_BOILERPLATE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
|
@ -30,20 +30,6 @@ GST_ELEMENT_DETAILS ("RTP depayloader",
|
||||||
"Accepts raw RTP and RTCP packets and sends them forward",
|
"Accepts raw RTP and RTCP packets and sends them forward",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* GstRTPDepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
ARG_SKIP
|
|
||||||
/* FILL ME */
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_depay_src_rtp_template =
|
static GstStaticPadTemplate gst_rtp_depay_src_rtp_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("srcrtp",
|
GST_STATIC_PAD_TEMPLATE ("srcrtp",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -72,7 +58,7 @@ GST_STATIC_PAD_TEMPLATE ("sinkrtcp",
|
||||||
GST_STATIC_CAPS ("application/x-rtcp")
|
GST_STATIC_CAPS ("application/x-rtcp")
|
||||||
);
|
);
|
||||||
|
|
||||||
static void gst_rtp_depay_class_init (gpointer g_class);
|
static void gst_rtp_depay_class_init (GstRTPDepayClass * klass);
|
||||||
static void gst_rtp_depay_init (GstRTPDepay * rtpdepay);
|
static void gst_rtp_depay_init (GstRTPDepay * rtpdepay);
|
||||||
|
|
||||||
static GstCaps *gst_rtp_depay_getcaps (GstPad * pad);
|
static GstCaps *gst_rtp_depay_getcaps (GstPad * pad);
|
||||||
|
@ -80,11 +66,6 @@ static GstFlowReturn gst_rtp_depay_chain_rtp (GstPad * pad, GstBuffer * buffer);
|
||||||
static GstFlowReturn gst_rtp_depay_chain_rtcp (GstPad * pad,
|
static GstFlowReturn gst_rtp_depay_chain_rtcp (GstPad * pad,
|
||||||
GstBuffer * buffer);
|
GstBuffer * buffer);
|
||||||
|
|
||||||
static void gst_rtp_depay_set_property (GObject * object,
|
|
||||||
guint prop_id, const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_depay_get_property (GObject * object,
|
|
||||||
guint prop_id, GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_depay_change_state (GstElement * element,
|
static GstStateChangeReturn gst_rtp_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition);
|
GstStateChange transition);
|
||||||
|
|
||||||
|
@ -117,15 +98,9 @@ gst_rtp_depay_get_type (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_rtp_depay_class_init (gpointer g_class)
|
gst_rtp_depay_class_init (GstRTPDepayClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
GstRTPDepayClass *klass;
|
|
||||||
|
|
||||||
klass = (GstRTPDepayClass *) g_class;
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
|
||||||
gstelement_class = (GstElementClass *) klass;
|
|
||||||
|
|
||||||
gst_element_class_add_pad_template (gstelement_class,
|
gst_element_class_add_pad_template (gstelement_class,
|
||||||
gst_static_pad_template_get (&gst_rtp_depay_src_rtp_template));
|
gst_static_pad_template_get (&gst_rtp_depay_src_rtp_template));
|
||||||
|
@ -137,11 +112,6 @@ gst_rtp_depay_class_init (gpointer g_class)
|
||||||
gst_static_pad_template_get (&gst_rtp_depay_sink_rtcp_template));
|
gst_static_pad_template_get (&gst_rtp_depay_sink_rtcp_template));
|
||||||
gst_element_class_set_details (gstelement_class, &rtpdepay_details);
|
gst_element_class_set_details (gstelement_class, &rtpdepay_details);
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_depay_get_property;
|
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SKIP, g_param_spec_int ("skip", "skip", "skip", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_depay_change_state;
|
gstelement_class->change_state = gst_rtp_depay_change_state;
|
||||||
|
@ -220,38 +190,6 @@ gst_rtp_depay_chain_rtcp (GstPad * pad, GstBuffer * buffer)
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRTPDepay *src;
|
|
||||||
|
|
||||||
src = GST_RTP_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
case ARG_SKIP:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_depay_get_property (GObject * object, guint prop_id, GValue * value,
|
|
||||||
GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRTPDepay *src;
|
|
||||||
|
|
||||||
src = GST_RTP_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
case ARG_SKIP:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_depay_change_state (GstElement * element, GstStateChange transition)
|
gst_rtp_depay_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
|
@ -260,21 +198,25 @@ gst_rtp_depay_change_state (GstElement * element, GstStateChange transition)
|
||||||
|
|
||||||
rtpdepay = GST_RTP_DEPAY (element);
|
rtpdepay = GST_RTP_DEPAY (element);
|
||||||
|
|
||||||
switch (transition) {
|
/*
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
switch (transition) {
|
||||||
break;
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||||
|
|
||||||
switch (transition) {
|
/*
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
switch (transition) {
|
||||||
break;
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,6 +109,7 @@ static void
|
||||||
gst_rtp_gsm_depay_init (GstRTPGSMDepay * rtpgsmdepay,
|
gst_rtp_gsm_depay_init (GstRTPGSMDepay * rtpgsmdepay,
|
||||||
GstRTPGSMDepayClass * klass)
|
GstRTPGSMDepayClass * klass)
|
||||||
{
|
{
|
||||||
|
/* needed because of GST_BOILERPLATE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
|
@ -43,17 +43,6 @@ GST_ELEMENT_DETAILS ("RTP H263 packet depayloader",
|
||||||
"Philippe Kalaf <philippe.kalaf@collabora.co.uk>, "
|
"Philippe Kalaf <philippe.kalaf@collabora.co.uk>, "
|
||||||
"Edward Hervey <bilboed@bilboed.com>");
|
"Edward Hervey <bilboed@bilboed.com>");
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0
|
|
||||||
};
|
|
||||||
|
|
||||||
#define GST_RFC2190A_HEADER_LEN 4
|
#define GST_RFC2190A_HEADER_LEN 4
|
||||||
#define GST_RFC2190B_HEADER_LEN 8
|
#define GST_RFC2190B_HEADER_LEN 8
|
||||||
#define GST_RFC2190C_HEADER_LEN 12
|
#define GST_RFC2190C_HEADER_LEN 12
|
||||||
|
@ -84,10 +73,6 @@ GST_BOILERPLATE (GstRtpH263Depay, gst_rtp_h263_depay, GstBaseRTPDepayload,
|
||||||
GST_TYPE_BASE_RTP_DEPAYLOAD);
|
GST_TYPE_BASE_RTP_DEPAYLOAD);
|
||||||
|
|
||||||
static void gst_rtp_h263_depay_finalize (GObject * object);
|
static void gst_rtp_h263_depay_finalize (GObject * object);
|
||||||
static void gst_rtp_h263_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_h263_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_h263_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_h263_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
@ -107,7 +92,6 @@ gst_rtp_h263_depay_base_init (gpointer klass)
|
||||||
gst_element_class_add_pad_template (element_class,
|
gst_element_class_add_pad_template (element_class,
|
||||||
gst_static_pad_template_get (&gst_rtp_h263_depay_sink_template));
|
gst_static_pad_template_get (&gst_rtp_h263_depay_sink_template));
|
||||||
|
|
||||||
|
|
||||||
gst_element_class_set_details (element_class, &gst_rtp_h263depay_details);
|
gst_element_class_set_details (element_class, &gst_rtp_h263depay_details);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,9 +113,6 @@ gst_rtp_h263_depay_class_init (GstRtpH263DepayClass * klass)
|
||||||
|
|
||||||
gobject_class->finalize = gst_rtp_h263_depay_finalize;
|
gobject_class->finalize = gst_rtp_h263_depay_finalize;
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_h263_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_h263_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_h263_depay_change_state;
|
gstelement_class->change_state = gst_rtp_h263_depay_change_state;
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (rtph263depay_debug, "rtph263depay", 0,
|
GST_DEBUG_CATEGORY_INIT (rtph263depay_debug, "rtph263depay", 0,
|
||||||
|
@ -354,36 +335,6 @@ bad_packet:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_h263_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpH263Depay *rtph263depay;
|
|
||||||
|
|
||||||
rtph263depay = GST_RTP_H263_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_h263_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpH263Depay *rtph263depay;
|
|
||||||
|
|
||||||
rtph263depay = GST_RTP_H263_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_h263_depay_change_state (GstElement * element,
|
gst_rtp_h263_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
|
|
|
@ -33,19 +33,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts H263/+/++ video from RTP packets (RFC 4629)",
|
"Extracts H263/+/++ video from RTP packets (RFC 4629)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpH263PDepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
ARG_FREQUENCY
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_h263p_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_h263p_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -100,10 +87,6 @@ GST_BOILERPLATE (GstRtpH263PDepay, gst_rtp_h263p_depay, GstBaseRTPDepayload,
|
||||||
GST_TYPE_BASE_RTP_DEPAYLOAD);
|
GST_TYPE_BASE_RTP_DEPAYLOAD);
|
||||||
|
|
||||||
static void gst_rtp_h263p_depay_finalize (GObject * object);
|
static void gst_rtp_h263p_depay_finalize (GObject * object);
|
||||||
static void gst_rtp_h263p_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_h263p_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_h263p_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_h263p_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
@ -145,9 +128,6 @@ gst_rtp_h263p_depay_class_init (GstRtpH263PDepayClass * klass)
|
||||||
|
|
||||||
gobject_class->finalize = gst_rtp_h263p_depay_finalize;
|
gobject_class->finalize = gst_rtp_h263p_depay_finalize;
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_h263p_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_h263p_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_h263p_depay_change_state;
|
gstelement_class->change_state = gst_rtp_h263p_depay_change_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -370,36 +350,6 @@ waiting_start:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_h263p_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpH263PDepay *rtph263pdepay;
|
|
||||||
|
|
||||||
rtph263pdepay = GST_RTP_H263P_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_h263p_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpH263PDepay *rtph263pdepay;
|
|
||||||
|
|
||||||
rtph263pdepay = GST_RTP_H263P_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_h263p_depay_change_state (GstElement * element,
|
gst_rtp_h263p_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
|
|
|
@ -92,7 +92,6 @@ static void gst_rtp_h263p_pay_finalize (GObject * object);
|
||||||
|
|
||||||
static void gst_rtp_h263p_pay_set_property (GObject * object, guint prop_id,
|
static void gst_rtp_h263p_pay_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * pspec);
|
const GValue * value, GParamSpec * pspec);
|
||||||
|
|
||||||
static void gst_rtp_h263p_pay_get_property (GObject * object, guint prop_id,
|
static void gst_rtp_h263p_pay_get_property (GObject * object, guint prop_id,
|
||||||
GValue * value, GParamSpec * pspec);
|
GValue * value, GParamSpec * pspec);
|
||||||
|
|
||||||
|
|
|
@ -39,19 +39,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts H264 video from RTP packets (RFC 3984)",
|
"Extracts H264 video from RTP packets (RFC 3984)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpH264Depay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
ARG_FREQUENCY
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_h264_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_h264_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -90,10 +77,6 @@ GST_BOILERPLATE (GstRtpH264Depay, gst_rtp_h264_depay, GstBaseRTPDepayload,
|
||||||
GST_TYPE_BASE_RTP_DEPAYLOAD);
|
GST_TYPE_BASE_RTP_DEPAYLOAD);
|
||||||
|
|
||||||
static void gst_rtp_h264_depay_finalize (GObject * object);
|
static void gst_rtp_h264_depay_finalize (GObject * object);
|
||||||
static void gst_rtp_h264_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_h264_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_h264_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_h264_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
@ -128,8 +111,6 @@ gst_rtp_h264_depay_class_init (GstRtpH264DepayClass * klass)
|
||||||
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
||||||
|
|
||||||
gobject_class->finalize = gst_rtp_h264_depay_finalize;
|
gobject_class->finalize = gst_rtp_h264_depay_finalize;
|
||||||
gobject_class->set_property = gst_rtp_h264_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_h264_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_h264_depay_change_state;
|
gstelement_class->change_state = gst_rtp_h264_depay_change_state;
|
||||||
|
|
||||||
|
@ -533,36 +514,6 @@ not_implemented:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_h264_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpH264Depay *rtph264depay;
|
|
||||||
|
|
||||||
rtph264depay = GST_RTP_H264_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_h264_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpH264Depay *rtph264depay;
|
|
||||||
|
|
||||||
rtph264depay = GST_RTP_H264_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_h264_depay_change_state (GstElement * element,
|
gst_rtp_h264_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
|
|
|
@ -66,11 +66,6 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
|
|
||||||
static void gst_rtp_h264_pay_finalize (GObject * object);
|
static void gst_rtp_h264_pay_finalize (GObject * object);
|
||||||
|
|
||||||
static void gst_rtp_h264_pay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_h264_pay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_h264_pay_change_state (GstElement * element,
|
static GstStateChangeReturn gst_rtp_h264_pay_change_state (GstElement * element,
|
||||||
GstStateChange transition);
|
GstStateChange transition);
|
||||||
|
|
||||||
|
@ -107,8 +102,6 @@ gst_rtp_h264_pay_class_init (GstRtpH264PayClass * klass)
|
||||||
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
|
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
|
||||||
|
|
||||||
gobject_class->finalize = gst_rtp_h264_pay_finalize;
|
gobject_class->finalize = gst_rtp_h264_pay_finalize;
|
||||||
gobject_class->set_property = gst_rtp_h264_pay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_h264_pay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_h264_pay_change_state;
|
gstelement_class->change_state = gst_rtp_h264_pay_change_state;
|
||||||
|
|
||||||
|
@ -537,36 +530,6 @@ gst_rtp_h264_pay_handle_buffer (GstBaseRTPPayload * basepayload,
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_h264_pay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpH264Pay *rtph264pay;
|
|
||||||
|
|
||||||
rtph264pay = GST_RTP_H264_PAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_h264_pay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpH264Pay *rtph264pay;
|
|
||||||
|
|
||||||
rtph264pay = GST_RTP_H264_PAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_h264_pay_change_state (GstElement * element, GstStateChange transition)
|
gst_rtp_h264_pay_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
|
|
|
@ -136,13 +136,9 @@ gst_rtp_mp2t_depay_class_init (GstRtpMP2TDepayClass * klass)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_rtp_mp2t_depay_init (GstRtpMP2TDepay * depayload,
|
gst_rtp_mp2t_depay_init (GstRtpMP2TDepay * rtpmp2tdepay,
|
||||||
GstRtpMP2TDepayClass * klass)
|
GstRtpMP2TDepayClass * klass)
|
||||||
{
|
{
|
||||||
GstRtpMP2TDepay *rtpmp2tdepay;
|
|
||||||
|
|
||||||
rtpmp2tdepay = GST_RTP_MP2T_DEPAY (depayload);
|
|
||||||
|
|
||||||
rtpmp2tdepay->skip_first_bytes = DEFAULT_SKIP_FIRST_BYTES;
|
rtpmp2tdepay->skip_first_bytes = DEFAULT_SKIP_FIRST_BYTES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,17 +37,6 @@ GST_ELEMENT_DETAILS ("RTP packet parser",
|
||||||
"Nokia Corporation (contact <stefan.kost@nokia.com>), "
|
"Nokia Corporation (contact <stefan.kost@nokia.com>), "
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpMP4ADepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
PROP_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_mp4a_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_mp4a_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -83,11 +72,6 @@ static gboolean gst_rtp_mp4a_depay_setcaps (GstBaseRTPDepayload * depayload,
|
||||||
static GstBuffer *gst_rtp_mp4a_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_mp4a_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static void gst_rtp_mp4a_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_mp4a_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_mp4a_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_mp4a_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
|
||||||
|
@ -117,8 +101,6 @@ gst_rtp_mp4a_depay_class_init (GstRtpMP4ADepayClass * klass)
|
||||||
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
||||||
|
|
||||||
gobject_class->finalize = gst_rtp_mp4a_depay_finalize;
|
gobject_class->finalize = gst_rtp_mp4a_depay_finalize;
|
||||||
gobject_class->set_property = gst_rtp_mp4a_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_mp4a_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_mp4a_depay_change_state;
|
gstelement_class->change_state = gst_rtp_mp4a_depay_change_state;
|
||||||
|
|
||||||
|
@ -354,36 +336,6 @@ wrong_size:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mp4a_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMP4ADepay *rtpmp4adepay;
|
|
||||||
|
|
||||||
rtpmp4adepay = GST_RTP_MP4A_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mp4a_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMP4ADepay *rtpmp4adepay;
|
|
||||||
|
|
||||||
rtpmp4adepay = GST_RTP_MP4A_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_mp4a_depay_change_state (GstElement * element,
|
gst_rtp_mp4a_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
|
|
|
@ -37,18 +37,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts MPEG4 elementary streams from RTP packets (RFC 3640)",
|
"Extracts MPEG4 elementary streams from RTP packets (RFC 3640)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpMP4GDepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_mp4g_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_mp4g_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -99,11 +87,6 @@ static gboolean gst_rtp_mp4g_depay_setcaps (GstBaseRTPDepayload * depayload,
|
||||||
static GstBuffer *gst_rtp_mp4g_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_mp4g_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static void gst_rtp_mp4g_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_mp4g_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_mp4g_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_mp4g_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
|
||||||
|
@ -135,8 +118,6 @@ gst_rtp_mp4g_depay_class_init (GstRtpMP4GDepayClass * klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gobject_class->finalize = gst_rtp_mp4g_depay_finalize;
|
gobject_class->finalize = gst_rtp_mp4g_depay_finalize;
|
||||||
gobject_class->set_property = gst_rtp_mp4g_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_mp4g_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_mp4g_depay_change_state;
|
gstelement_class->change_state = gst_rtp_mp4g_depay_change_state;
|
||||||
|
|
||||||
|
@ -386,36 +367,6 @@ bad_packet:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mp4g_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMP4GDepay *rtpmp4gdepay;
|
|
||||||
|
|
||||||
rtpmp4gdepay = GST_RTP_MP4G_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mp4g_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMP4GDepay *rtpmp4gdepay;
|
|
||||||
|
|
||||||
rtpmp4gdepay = GST_RTP_MP4G_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_mp4g_depay_change_state (GstElement * element,
|
gst_rtp_mp4g_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
|
|
|
@ -77,22 +77,12 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
/* "auxiliarydatasizelength = (string) [0, 64]" */ )
|
/* "auxiliarydatasizelength = (string) [0, 64]" */ )
|
||||||
);
|
);
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
PROP_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
static void gst_rtp_mp4g_pay_class_init (GstRtpMP4GPayClass * klass);
|
static void gst_rtp_mp4g_pay_class_init (GstRtpMP4GPayClass * klass);
|
||||||
static void gst_rtp_mp4g_pay_base_init (GstRtpMP4GPayClass * klass);
|
static void gst_rtp_mp4g_pay_base_init (GstRtpMP4GPayClass * klass);
|
||||||
static void gst_rtp_mp4g_pay_init (GstRtpMP4GPay * rtpmp4gpay);
|
static void gst_rtp_mp4g_pay_init (GstRtpMP4GPay * rtpmp4gpay);
|
||||||
static void gst_rtp_mp4g_pay_finalize (GObject * object);
|
static void gst_rtp_mp4g_pay_finalize (GObject * object);
|
||||||
|
|
||||||
static void gst_rtp_mp4g_pay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_mp4g_pay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static gboolean gst_rtp_mp4g_pay_setcaps (GstBaseRTPPayload * payload,
|
static gboolean gst_rtp_mp4g_pay_setcaps (GstBaseRTPPayload * payload,
|
||||||
GstCaps * caps);
|
GstCaps * caps);
|
||||||
static GstFlowReturn gst_rtp_mp4g_pay_handle_buffer (GstBaseRTPPayload *
|
static GstFlowReturn gst_rtp_mp4g_pay_handle_buffer (GstBaseRTPPayload *
|
||||||
|
@ -151,9 +141,6 @@ gst_rtp_mp4g_pay_class_init (GstRtpMP4GPayClass * klass)
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_mp4g_pay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_mp4g_pay_get_property;
|
|
||||||
|
|
||||||
gobject_class->finalize = gst_rtp_mp4g_pay_finalize;
|
gobject_class->finalize = gst_rtp_mp4g_pay_finalize;
|
||||||
|
|
||||||
gstbasertppayload_class->set_caps = gst_rtp_mp4g_pay_setcaps;
|
gstbasertppayload_class->set_caps = gst_rtp_mp4g_pay_setcaps;
|
||||||
|
@ -550,34 +537,6 @@ gst_rtp_mp4g_pay_handle_buffer (GstBaseRTPPayload * basepayload,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mp4g_pay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMP4GPay *rtpmp4gpay;
|
|
||||||
|
|
||||||
rtpmp4gpay = GST_RTP_MP4G_PAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mp4g_pay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMP4GPay *rtpmp4gpay;
|
|
||||||
|
|
||||||
rtpmp4gpay = GST_RTP_MP4G_PAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gst_rtp_mp4g_pay_plugin_init (GstPlugin * plugin)
|
gst_rtp_mp4g_pay_plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,17 +36,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts MPEG4 video from RTP packets (RFC 3016)",
|
"Extracts MPEG4 video from RTP packets (RFC 3016)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpMP4VDepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
PROP_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_mp4v_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_mp4v_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -81,11 +70,6 @@ static gboolean gst_rtp_mp4v_depay_setcaps (GstBaseRTPDepayload * depayload,
|
||||||
static GstBuffer *gst_rtp_mp4v_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_mp4v_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static void gst_rtp_mp4v_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_mp4v_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_mp4v_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_mp4v_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
|
||||||
|
@ -115,8 +99,6 @@ gst_rtp_mp4v_depay_class_init (GstRtpMP4VDepayClass * klass)
|
||||||
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
||||||
|
|
||||||
gobject_class->finalize = gst_rtp_mp4v_depay_finalize;
|
gobject_class->finalize = gst_rtp_mp4v_depay_finalize;
|
||||||
gobject_class->set_property = gst_rtp_mp4v_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_mp4v_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_mp4v_depay_change_state;
|
gstelement_class->change_state = gst_rtp_mp4v_depay_change_state;
|
||||||
|
|
||||||
|
@ -233,36 +215,6 @@ bad_packet:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mp4v_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMP4VDepay *rtpmp4vdepay;
|
|
||||||
|
|
||||||
rtpmp4vdepay = GST_RTP_MP4V_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mp4v_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMP4VDepay *rtpmp4vdepay;
|
|
||||||
|
|
||||||
rtpmp4vdepay = GST_RTP_MP4V_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_mp4v_depay_change_state (GstElement * element,
|
gst_rtp_mp4v_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
|
|
|
@ -36,18 +36,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts MPEG audio from RTP packets (RFC 2038)",
|
"Extracts MPEG audio from RTP packets (RFC 2038)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpMPADepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_mpa_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_mpa_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -77,11 +65,6 @@ static gboolean gst_rtp_mpa_depay_setcaps (GstBaseRTPDepayload * depayload,
|
||||||
static GstBuffer *gst_rtp_mpa_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_mpa_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static void gst_rtp_mpa_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_mpa_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_mpa_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_mpa_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
|
||||||
|
@ -111,9 +94,6 @@ gst_rtp_mpa_depay_class_init (GstRtpMPADepayClass * klass)
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_mpa_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_mpa_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_mpa_depay_change_state;
|
gstelement_class->change_state = gst_rtp_mpa_depay_change_state;
|
||||||
|
|
||||||
gstbasertpdepayload_class->set_caps = gst_rtp_mpa_depay_setcaps;
|
gstbasertpdepayload_class->set_caps = gst_rtp_mpa_depay_setcaps;
|
||||||
|
@ -127,6 +107,7 @@ static void
|
||||||
gst_rtp_mpa_depay_init (GstRtpMPADepay * rtpmpadepay,
|
gst_rtp_mpa_depay_init (GstRtpMPADepay * rtpmpadepay,
|
||||||
GstRtpMPADepayClass * klass)
|
GstRtpMPADepayClass * klass)
|
||||||
{
|
{
|
||||||
|
/* needed because of GST_BOILERPLATE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -214,36 +195,6 @@ empty_packet:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mpa_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMPADepay *rtpmpadepay;
|
|
||||||
|
|
||||||
rtpmpadepay = GST_RTP_MPA_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mpa_depay_get_property (GObject * object, guint prop_id, GValue * value,
|
|
||||||
GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMPADepay *rtpmpadepay;
|
|
||||||
|
|
||||||
rtpmpadepay = GST_RTP_MPA_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_mpa_depay_change_state (GstElement * element, GstStateChange transition)
|
gst_rtp_mpa_depay_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,18 +36,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts MPEG video from RTP packets (RFC 2250)",
|
"Extracts MPEG video from RTP packets (RFC 2250)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpMPVDepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
/* FIXME, we set the mpeg version to 2, we should ideally be looking at contents
|
/* FIXME, we set the mpeg version to 2, we should ideally be looking at contents
|
||||||
* of the stream to figure out the version */
|
* of the stream to figure out the version */
|
||||||
static GstStaticPadTemplate gst_rtp_mpv_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_mpv_depay_src_template =
|
||||||
|
@ -80,11 +68,6 @@ static gboolean gst_rtp_mpv_depay_setcaps (GstBaseRTPDepayload * depayload,
|
||||||
static GstBuffer *gst_rtp_mpv_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_mpv_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static void gst_rtp_mpv_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_mpv_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_mpv_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_mpv_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
|
||||||
|
@ -114,9 +97,6 @@ gst_rtp_mpv_depay_class_init (GstRtpMPVDepayClass * klass)
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_mpv_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_mpv_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_mpv_depay_change_state;
|
gstelement_class->change_state = gst_rtp_mpv_depay_change_state;
|
||||||
|
|
||||||
gstbasertpdepayload_class->set_caps = gst_rtp_mpv_depay_setcaps;
|
gstbasertpdepayload_class->set_caps = gst_rtp_mpv_depay_setcaps;
|
||||||
|
@ -130,6 +110,7 @@ static void
|
||||||
gst_rtp_mpv_depay_init (GstRtpMPVDepay * rtpmpvdepay,
|
gst_rtp_mpv_depay_init (GstRtpMPVDepay * rtpmpvdepay,
|
||||||
GstRtpMPVDepayClass * klass)
|
GstRtpMPVDepayClass * klass)
|
||||||
{
|
{
|
||||||
|
/* needed because of GST_BOILERPLATE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -230,36 +211,6 @@ empty_packet:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mpv_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMPVDepay *rtpmpvdepay;
|
|
||||||
|
|
||||||
rtpmpvdepay = GST_RTP_MPV_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_mpv_depay_get_property (GObject * object, guint prop_id, GValue * value,
|
|
||||||
GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpMPVDepay *rtpmpvdepay;
|
|
||||||
|
|
||||||
rtpmpvdepay = GST_RTP_MPV_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_mpv_depay_change_state (GstElement * element, GstStateChange transition)
|
gst_rtp_mpv_depay_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,19 +33,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts SVQ3 video from RTP packets (no RFC)",
|
"Extracts SVQ3 video from RTP packets (no RFC)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpSV3VDepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
ARG_FREQUENCY
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_sv3v_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_sv3v_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -68,10 +55,6 @@ GST_BOILERPLATE (GstRtpSV3VDepay, gst_rtp_sv3v_depay, GstBaseRTPDepayload,
|
||||||
GST_TYPE_BASE_RTP_DEPAYLOAD);
|
GST_TYPE_BASE_RTP_DEPAYLOAD);
|
||||||
|
|
||||||
static void gst_rtp_sv3v_depay_finalize (GObject * object);
|
static void gst_rtp_sv3v_depay_finalize (GObject * object);
|
||||||
static void gst_rtp_sv3v_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_sv3v_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_sv3v_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_sv3v_depay_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
|
@ -113,9 +96,6 @@ gst_rtp_sv3v_depay_class_init (GstRtpSV3VDepayClass * klass)
|
||||||
|
|
||||||
gobject_class->finalize = gst_rtp_sv3v_depay_finalize;
|
gobject_class->finalize = gst_rtp_sv3v_depay_finalize;
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_sv3v_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_sv3v_depay_get_property;
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_sv3v_depay_change_state;
|
gstelement_class->change_state = gst_rtp_sv3v_depay_change_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -273,36 +253,6 @@ bad_packet:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_sv3v_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpSV3VDepay *rtpsv3vdepay;
|
|
||||||
|
|
||||||
rtpsv3vdepay = GST_RTP_SV3V_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_sv3v_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpSV3VDepay *rtpsv3vdepay;
|
|
||||||
|
|
||||||
rtpsv3vdepay = GST_RTP_SV3V_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_sv3v_depay_change_state (GstElement * element,
|
gst_rtp_sv3v_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
|
|
|
@ -37,18 +37,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts Theora video from RTP packets (draft-01 of RFC XXXX)",
|
"Extracts Theora video from RTP packets (draft-01 of RFC XXXX)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpTheoraDepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_theora_depay_sink_template =
|
static GstStaticPadTemplate gst_rtp_theora_depay_sink_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
|
@ -87,10 +75,6 @@ static gboolean gst_rtp_theora_depay_setcaps (GstBaseRTPDepayload * depayload,
|
||||||
static GstBuffer *gst_rtp_theora_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_theora_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static void gst_rtp_theora_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_theora_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_theora_depay_finalize (GObject * object);
|
static void gst_rtp_theora_depay_finalize (GObject * object);
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_theora_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_theora_depay_change_state (GstElement *
|
||||||
|
@ -121,8 +105,6 @@ gst_rtp_theora_depay_class_init (GstRtpTheoraDepayClass * klass)
|
||||||
gstelement_class = (GstElementClass *) klass;
|
gstelement_class = (GstElementClass *) klass;
|
||||||
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_theora_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_theora_depay_get_property;
|
|
||||||
gobject_class->finalize = gst_rtp_theora_depay_finalize;
|
gobject_class->finalize = gst_rtp_theora_depay_finalize;
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_theora_depay_change_state;
|
gstelement_class->change_state = gst_rtp_theora_depay_change_state;
|
||||||
|
@ -670,36 +652,6 @@ length_short:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_theora_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpTheoraDepay *rtptheoradepay;
|
|
||||||
|
|
||||||
rtptheoradepay = GST_RTP_THEORA_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_theora_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpTheoraDepay *rtptheoradepay;
|
|
||||||
|
|
||||||
rtptheoradepay = GST_RTP_THEORA_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_theora_depay_change_state (GstElement * element,
|
gst_rtp_theora_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
|
|
|
@ -119,6 +119,7 @@ static void
|
||||||
gst_rtp_theora_pay_init (GstRtpTheoraPay * rtptheorapay,
|
gst_rtp_theora_pay_init (GstRtpTheoraPay * rtptheorapay,
|
||||||
GstRtpTheoraPayClass * klass)
|
GstRtpTheoraPayClass * klass)
|
||||||
{
|
{
|
||||||
|
/* needed because of GST_BOILERPLATE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
|
@ -41,18 +41,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
|
||||||
"Extracts Vorbis Audio from RTP packets (draft-04 of RFC XXXX)",
|
"Extracts Vorbis Audio from RTP packets (draft-04 of RFC XXXX)",
|
||||||
"Wim Taymans <wim@fluendo.com>");
|
"Wim Taymans <wim@fluendo.com>");
|
||||||
|
|
||||||
/* RtpVorbisDepay signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_vorbis_depay_sink_template =
|
static GstStaticPadTemplate gst_rtp_vorbis_depay_sink_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
|
@ -89,10 +77,6 @@ static gboolean gst_rtp_vorbis_depay_setcaps (GstBaseRTPDepayload * depayload,
|
||||||
static GstBuffer *gst_rtp_vorbis_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_vorbis_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
|
|
||||||
static void gst_rtp_vorbis_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_vorbis_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_rtp_vorbis_depay_finalize (GObject * object);
|
static void gst_rtp_vorbis_depay_finalize (GObject * object);
|
||||||
|
|
||||||
static GstStateChangeReturn gst_rtp_vorbis_depay_change_state (GstElement *
|
static GstStateChangeReturn gst_rtp_vorbis_depay_change_state (GstElement *
|
||||||
|
@ -123,8 +107,6 @@ gst_rtp_vorbis_depay_class_init (GstRtpVorbisDepayClass * klass)
|
||||||
gstelement_class = (GstElementClass *) klass;
|
gstelement_class = (GstElementClass *) klass;
|
||||||
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
|
||||||
|
|
||||||
gobject_class->set_property = gst_rtp_vorbis_depay_set_property;
|
|
||||||
gobject_class->get_property = gst_rtp_vorbis_depay_get_property;
|
|
||||||
gobject_class->finalize = gst_rtp_vorbis_depay_finalize;
|
gobject_class->finalize = gst_rtp_vorbis_depay_finalize;
|
||||||
|
|
||||||
gstelement_class->change_state = gst_rtp_vorbis_depay_change_state;
|
gstelement_class->change_state = gst_rtp_vorbis_depay_change_state;
|
||||||
|
@ -677,36 +659,6 @@ length_short:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_vorbis_depay_set_property (GObject * object, guint prop_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpVorbisDepay *rtpvorbisdepay;
|
|
||||||
|
|
||||||
rtpvorbisdepay = GST_RTP_VORBIS_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gst_rtp_vorbis_depay_get_property (GObject * object, guint prop_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstRtpVorbisDepay *rtpvorbisdepay;
|
|
||||||
|
|
||||||
rtpvorbisdepay = GST_RTP_VORBIS_DEPAY (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_rtp_vorbis_depay_change_state (GstElement * element,
|
gst_rtp_vorbis_depay_change_state (GstElement * element,
|
||||||
GstStateChange transition)
|
GstStateChange transition)
|
||||||
|
|
|
@ -115,6 +115,7 @@ static void
|
||||||
gst_rtp_vorbis_pay_init (GstRtpVorbisPay * rtpvorbispay,
|
gst_rtp_vorbis_pay_init (GstRtpVorbisPay * rtpvorbispay,
|
||||||
GstRtpVorbisPayClass * klass)
|
GstRtpVorbisPayClass * klass)
|
||||||
{
|
{
|
||||||
|
/* needed because of GST_BOILERPLATE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue