Commit 2ce9c411 authored by W. Michael Petullo's avatar W. Michael Petullo
Browse files

Print warning on AVAHI_RESOLVER_FAILURE


Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent 6fd86ceb
......@@ -371,12 +371,16 @@ resolve_cb (AvahiServiceResolver *service_resolver,
#endif
DMAPMdnsBrowser *browser)
{
if (event == AVAHI_RESOLVER_FOUND) {
switch (event) {
gchar *name = NULL;
gchar *pair = NULL; /* FIXME: extract DACP-specific items into sub-class? See also howl code. */
gchar host[AVAHI_ADDRESS_STR_MAX];
gboolean pp = FALSE;
DMAPMdnsBrowserService *service;
case AVAHI_RESOLVER_FAILURE:
g_warning ("Failed to resolve service '%s' of type '%s' in domain '%s': %s\n", service_name, type, domain, avahi_strerror(avahi_client_errno(avahi_service_resolver_get_client(service_resolver))));
break;
case AVAHI_RESOLVER_FOUND:
if (text) {
AvahiStringList *l;
......@@ -432,6 +436,10 @@ resolve_cb (AvahiServiceResolver *service_resolver,
browser->priv->services = g_slist_append (browser->priv->services, service);
g_signal_emit (browser,
dmap_mdns_browser_signals [SERVICE_ADDED], 0, service);
break;
default:
g_warning ("Unhandled event");
break;
}
browser->priv->resolvers = g_slist_remove (browser->priv->resolvers, service_resolver);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment