diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-01-17 13:08:42 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-01-17 13:08:42 +0100 |
commit | cb789e32ad9d0e5e0651ec9a4ce8f1e2c6762d43 (patch) | |
tree | 50a485243655a5b27c18c34989ef1dc2ad7afb9b /gst/rtpmanager/rtpsource.h | |
parent | a3496b14eaac83567d29d71aeea93282e2e3a07e (diff) |
rtpmanager: Port to GIO
Diffstat (limited to 'gst/rtpmanager/rtpsource.h')
-rw-r--r-- | gst/rtpmanager/rtpsource.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gst/rtpmanager/rtpsource.h b/gst/rtpmanager/rtpsource.h index ca95dff25..4adbf702b 100644 --- a/gst/rtpmanager/rtpsource.h +++ b/gst/rtpmanager/rtpsource.h @@ -23,6 +23,7 @@ #include <gst/gst.h> #include <gst/rtp/gstrtcpbuffer.h> #include <gst/net/gstnetaddressmeta.h> +#include <gio/gio.h> #include "rtpstats.h" @@ -102,14 +103,14 @@ typedef struct { /** * RTPConflictingAddress: - * @address: #GstNetAddress which conflicted + * @address: #GSocketAddress which conflicted * @last_conflict_time: time when the last conflict was seen * * This structure is used to account for addresses that have conflicted to find * loops. */ typedef struct { - GstNetAddress address; + GSocketAddress *address; GstClockTime time; } RTPConflictingAddress; @@ -138,10 +139,8 @@ struct _RTPSource { gboolean received_bye; gchar *bye_reason; - gboolean have_rtp_from; - GstNetAddress rtp_from; - gboolean have_rtcp_from; - GstNetAddress rtcp_from; + GSocketAddress *rtp_from; + GSocketAddress *rtcp_from; gint payload; GstCaps *caps; @@ -213,8 +212,8 @@ const GstStructure * gboolean rtp_source_set_sdes_struct (RTPSource * src, GstStructure *sdes); /* handling network address */ -void rtp_source_set_rtp_from (RTPSource *src, GstNetAddress *address); -void rtp_source_set_rtcp_from (RTPSource *src, GstNetAddress *address); +void rtp_source_set_rtp_from (RTPSource *src, GSocketAddress *address); +void rtp_source_set_rtcp_from (RTPSource *src, GSocketAddress *address); /* handling RTP */ GstFlowReturn rtp_source_process_rtp (RTPSource *src, GstBuffer *buffer, RTPArrivalStats *arrival); @@ -246,11 +245,11 @@ gboolean rtp_source_get_last_rb (RTPSource *src, guint8 *fraction void rtp_source_reset (RTPSource * src); gboolean rtp_source_find_conflicting_address (RTPSource * src, - GstNetAddress *address, + GSocketAddress *address, GstClockTime time); void rtp_source_add_conflicting_address (RTPSource * src, - GstNetAddress *address, + GSocketAddress *address, GstClockTime time); void rtp_source_timeout (RTPSource * src, |