From: Stefan BrĂ¼ns Date: Sat, 19 Jan 2019 21:41:11 +0000 (+0100) Subject: avahi: Explicitly handle AVAHI_BROWSER_REMOVE events X-Git-Tag: archive/raspbian/3.0.11.1-2+rpi1~1^2^2^2^2^2^2^2^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bd890a14c91a0503f45f736ab2ae6aeee3c92b7f;p=vlc.git avahi: Explicitly handle AVAHI_BROWSER_REMOVE events 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 (cherry picked from commit aaba1daa2683a403ab4adefffa1abd59f9339d2b) Signed-off-by: Thomas Guillem Gbp-Pq: Name 0003-avahi-Explicitly-handle-AVAHI_BROWSER_REMOVE-events.patch --- diff --git a/modules/services_discovery/avahi.c b/modules/services_discovery/avahi.c index 1457c75a..f1d4d06f 100644 --- a/modules/services_discovery/avahi.c +++ b/modules/services_discovery/avahi.c @@ -241,7 +241,7 @@ static void browse_callback( 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;