diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2005-09-15 13:57:56 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2005-09-15 13:57:56 +0000 |
commit | fc158bc3c2739eabfb092f7a45f6656ac8c96e25 (patch) | |
tree | 199f9ea3d2fddfcbc8315e95d6fe17c2e9936cd5 /gst/rtp/gstrtpgsmpay.h | |
parent | c7468729e9e05fa3cbcf6ee1fbbd578c516e2200 (diff) |
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.
Diffstat (limited to 'gst/rtp/gstrtpgsmpay.h')
-rw-r--r-- | gst/rtp/gstrtpgsmpay.h | 52 |
1 files changed, 16 insertions, 36 deletions
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 <gst/gst.h> -#include "rtp-packet.h" -#include "gstrtp-common.h" +#include <gst/rtp/gstbasertppayload.h> -#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__ */ |