diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-06-19 19:16:01 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-12-16 20:26:36 +0000 |
commit | dead5c2476ff1033c8765764fbe970a084ad888a (patch) | |
tree | e066ad329f568a1169b068d338601cc35a7f2f99 /gst/udp/gstmultiudpsink.h | |
parent | 675384a8cb43277643ac7302c9fa5878f1893887 (diff) |
multiudpsink: make udp client structure refcounted
Use the refcount for memory management and keep track
of the number of duplicate clients in a separate
variable. This will be useful later, and means we
don't have to hold the OBJECT_LOCK all the time.
https://bugzilla.gnome.org/show_bug.cgi?id=732866
Diffstat (limited to 'gst/udp/gstmultiudpsink.h')
-rw-r--r-- | gst/udp/gstmultiudpsink.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/udp/gstmultiudpsink.h b/gst/udp/gstmultiudpsink.h index 60af9587b..ee9776dde 100644 --- a/gst/udp/gstmultiudpsink.h +++ b/gst/udp/gstmultiudpsink.h @@ -39,7 +39,8 @@ typedef struct _GstMultiUDPSink GstMultiUDPSink; typedef struct _GstMultiUDPSinkClass GstMultiUDPSinkClass; typedef struct { - gint refcount; + gint ref_count; /* for memory management */ + gint add_count; /* how often this address has been added */ GSocketAddress *addr; gchar *host; |