summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-09-25 00:51:01 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-09-25 00:51:01 +0200
commit658f4b67027025542fe494448838ff5e6277d455 (patch)
treed143deb4568efdc99ca6f21be7142a81d7596476 /src/utils.c
parentremoved useless header include (diff)
removing clients works now
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c10
1 files changed, 5 insertions, 5 deletions
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 <gst/gst.h>
-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)