From fc158bc3c2739eabfb092f7a45f6656ac8c96e25 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 15 Sep 2005 13:57:56 +0000 Subject: Updates to payloader/depayloaders, make payloaders use the base classes. Original commit message from CVS: Updates to payloader/depayloaders, make payloaders use the base classes. Updated README with suggested RTP caps and how to convert to/from SDP. Added config descriptor in mp4v payloader. --- gst/rtp/gstrtpgsmpay.h | 52 ++++++++++++++++---------------------------------- 1 file changed, 16 insertions(+), 36 deletions(-) (limited to 'gst/rtp/gstrtpgsmpay.h') diff --git a/gst/rtp/gstrtpgsmpay.h b/gst/rtp/gstrtpgsmpay.h index 1220d402..46fab46a 100644 --- a/gst/rtp/gstrtpgsmpay.h +++ b/gst/rtp/gstrtpgsmpay.h @@ -22,42 +22,13 @@ #define __GST_RTP_GSM_ENC_H__ #include -#include "rtp-packet.h" -#include "gstrtp-common.h" +#include -#ifdef __cplusplus -extern "C" -{ -#endif /* __cplusplus */ +G_BEGIN_DECLS -/* Definition of structure storing data for this element. */ typedef struct _GstRtpGSMEnc GstRtpGSMEnc; -struct _GstRtpGSMEnc -{ - GstElement element; - - GstPad *sinkpad; - GstPad *srcpad; - - guint frequency; - - /* the timestamp of the next frame */ - guint64 next_time; - /* the interval between frames */ - guint64 time_interval; - - guint32 ssrc; - guint16 seq; -}; - -/* Standard definition defining a class for this element. */ typedef struct _GstRtpGSMEncClass GstRtpGSMEncClass; -struct _GstRtpGSMEncClass -{ - GstElementClass parent_class; -}; -/* Standard macros for defining types for this element. */ #define GST_TYPE_RTP_GSM_ENC \ (gst_rtpgsmenc_get_type()) #define GST_RTP_GSM_ENC(obj) \ @@ -69,11 +40,20 @@ struct _GstRtpGSMEncClass #define GST_IS_RTP_GSM_ENC_CLASS(obj) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_GSM_ENC)) -gboolean gst_rtpgsmenc_plugin_init (GstPlugin * plugin); +struct _GstRtpGSMEnc +{ + GstBaseRTPPayload payload; + + gint frequency; +}; -#ifdef __cplusplus -} -#endif /* __cplusplus */ +struct _GstRtpGSMEncClass +{ + GstBaseRTPPayloadClass parent_class; +}; + +gboolean gst_rtpgsmenc_plugin_init (GstPlugin * plugin); +G_END_DECLS -#endif /* __GST_RTP_GSM_ENC_H__ */ +#endif /* __GST_RTP_GSM_ENC_H__ */ -- cgit