static void
gst_rtp_rtx_receive_finalize (GObject * object)
{
- GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE (object);
+ GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE_CAST (object);
g_hash_table_unref (rtx->ssrc2_ssrc1_map);
g_hash_table_unref (rtx->seqnum_ssrc1_map);
gst_rtp_rtx_receive_src_event (GstPad * pad, GstObject * parent,
GstEvent * event)
{
- GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE (parent);
+ GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE_CAST (parent);
gboolean res;
switch (GST_EVENT_TYPE (event)) {
static GstFlowReturn
gst_rtp_rtx_receive_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
{
- GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE (parent);
+ GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE_CAST (parent);
GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
GstFlowReturn ret = GST_FLOW_OK;
GstBuffer *new_buffer = NULL;
gst_rtp_rtx_receive_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec)
{
- GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE (object);
+ GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE_CAST (object);
switch (prop_id) {
case PROP_PAYLOAD_TYPE_MAP:
gst_rtp_rtx_receive_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec)
{
- GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE (object);
+ GstRtpRtxReceive *rtx = GST_RTP_RTX_RECEIVE_CAST (object);
switch (prop_id) {
case PROP_PAYLOAD_TYPE_MAP:
GstStateChangeReturn ret;
GstRtpRtxReceive *rtx;
- rtx = GST_RTP_RTX_RECEIVE (element);
+ rtx = GST_RTP_RTX_RECEIVE_CAST (element);
switch (transition) {
default:
#include <gst/rtp/gstrtpbuffer.h>
G_BEGIN_DECLS
+typedef struct _GstRtpRtxReceive GstRtpRtxReceive;
+typedef struct _GstRtpRtxReceiveClass GstRtpRtxReceiveClass;
+
#define GST_TYPE_RTP_RTX_RECEIVE (gst_rtp_rtx_receive_get_type())
#define GST_RTP_RTX_RECEIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_RTX_RECEIVE, GstRtpRtxReceive))
#define GST_RTP_RTX_RECEIVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_RTX_RECEIVE, GstRtpRtxReceiveClass))
#define GST_RTP_RTX_RECEIVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RTP_RTX_RECEIVE, GstRtpRtxReceiveClass))
#define GST_IS_RTP_RTX_RECEIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_RTX_RECEIVE))
#define GST_IS_RTP_RTX_RECEIVE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_RTX_RECEIVE))
-typedef struct _GstRtpRtxReceive GstRtpRtxReceive;
-typedef struct _GstRtpRtxReceiveClass GstRtpRtxReceiveClass;
+#define GST_RTP_RTX_RECEIVE_CAST(obj) ((GstRtpRtxReceive *)(obj))
struct _GstRtpRtxReceive
{
static void
gst_rtp_rtx_send_finalize (GObject * object)
{
- GstRtpRtxSend *rtx = GST_RTP_RTX_SEND (object);
+ GstRtpRtxSend *rtx = GST_RTP_RTX_SEND_CAST (object);
g_hash_table_unref (rtx->ssrc_data);
g_hash_table_unref (rtx->rtx_ssrcs);
static gboolean
gst_rtp_rtx_send_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
- GstRtpRtxSend *rtx = GST_RTP_RTX_SEND (parent);
+ GstRtpRtxSend *rtx = GST_RTP_RTX_SEND_CAST (parent);
gboolean res;
switch (GST_EVENT_TYPE (event)) {
static gboolean
gst_rtp_rtx_send_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
- GstRtpRtxSend *rtx = GST_RTP_RTX_SEND (parent);
+ GstRtpRtxSend *rtx = GST_RTP_RTX_SEND_CAST (parent);
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_FLUSH_START:
static GstFlowReturn
gst_rtp_rtx_send_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
{
- GstRtpRtxSend *rtx = GST_RTP_RTX_SEND (parent);
+ GstRtpRtxSend *rtx = GST_RTP_RTX_SEND_CAST (parent);
GstFlowReturn ret;
GST_OBJECT_LOCK (rtx);
gst_rtp_rtx_send_chain_list (GstPad * pad, GstObject * parent,
GstBufferList * list)
{
- GstRtpRtxSend *rtx = GST_RTP_RTX_SEND (parent);
+ GstRtpRtxSend *rtx = GST_RTP_RTX_SEND_CAST (parent);
GstFlowReturn ret;
GST_OBJECT_LOCK (rtx);
gst_rtp_rtx_send_activate_mode (GstPad * pad, GstObject * parent,
GstPadMode mode, gboolean active)
{
- GstRtpRtxSend *rtx = GST_RTP_RTX_SEND (parent);
+ GstRtpRtxSend *rtx = GST_RTP_RTX_SEND_CAST (parent);
gboolean ret = FALSE;
switch (mode) {
gst_rtp_rtx_send_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec)
{
- GstRtpRtxSend *rtx = GST_RTP_RTX_SEND (object);
+ GstRtpRtxSend *rtx = GST_RTP_RTX_SEND_CAST (object);
switch (prop_id) {
case PROP_PAYLOAD_TYPE_MAP:
gst_rtp_rtx_send_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec)
{
- GstRtpRtxSend *rtx = GST_RTP_RTX_SEND (object);
+ GstRtpRtxSend *rtx = GST_RTP_RTX_SEND_CAST (object);
switch (prop_id) {
case PROP_SSRC_MAP:
GstStateChangeReturn ret;
GstRtpRtxSend *rtx;
- rtx = GST_RTP_RTX_SEND (element);
+ rtx = GST_RTP_RTX_SEND_CAST (element);
switch (transition) {
default:
#include <gst/base/gstdataqueue.h>
G_BEGIN_DECLS
+
+typedef struct _GstRtpRtxSend GstRtpRtxSend;
+typedef struct _GstRtpRtxSendClass GstRtpRtxSendClass;
+
#define GST_TYPE_RTP_RTX_SEND (gst_rtp_rtx_send_get_type())
#define GST_RTP_RTX_SEND(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_RTX_SEND, GstRtpRtxSend))
#define GST_RTP_RTX_SEND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_RTX_SEND, GstRtpRtxSendClass))
#define GST_RTP_RTX_SEND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RTP_RTX_SEND, GstRtpRtxSendClass))
#define GST_IS_RTP_RTX_SEND(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_RTX_SEND))
#define GST_IS_RTP_RTX_SEND_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_RTX_SEND))
-typedef struct _GstRtpRtxSend GstRtpRtxSend;
-typedef struct _GstRtpRtxSendClass GstRtpRtxSendClass;
+#define GST_RTP_RTX_SEND_CAST(obj) ((GstRtpRtxSend *)(obj))
struct _GstRtpRtxSend
{