diff options
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 10 |
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) |