From 658f4b67027025542fe494448838ff5e6277d455 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 25 Sep 2014 00:51:01 +0200 Subject: removing clients works now --- src/utils.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 1180b0a..729b23a 100644 --- a/src/utils.c +++ b/src/utils.c @@ -41,14 +41,14 @@ #include -gint cmp_addr_port(gconstpointer A, gconstpointer B) +gint cmp_udp_client(gconstpointer A, gconstpointer B) { - const struct addr_port *a = (const struct addr_port *)A; - const struct addr_port *b = (const struct addr_port *)B; + const struct udp_client *a = (const struct udp_client *)A; + const struct udp_client *b = (const struct udp_client *)B; - if(a->type_ != b->type_ || a->port_ != b->port_) + if(a->host_.type_ != b->host_.type_ || a->host_.port_ != b->host_.port_) return -1; - return strncmp(a->addr_, b->addr_, sizeof(a->addr_)); + return strncmp(a->host_.addr_, b->host_.addr_, sizeof(a->host_.addr_)); } GstElement* sydra_create_bin_from_desc(const char* type, const char* desc) -- cgit v1.2.3