name is only set for AVAHI_BROWSER_NEW and AVAHI_BROWSER_REMOVE. Explicitly
check for REMOVE instead of deducing the event type from the name being
set.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit
aaba1daa2683a403ab4adefffa1abd59f9339d2b)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0003-avahi-Explicitly-handle-AVAHI_BROWSER_REMOVE-events.patch
avahi_strerror( avahi_client_errno( p_sys->client ) ) );
}
}
- else if( name )
+ else if( event == AVAHI_BROWSER_REMOVE && name )
{
/** \todo Store the input id and search it, rather than searching the items */
input_item_t *p_item;