[vlc-devel] [PATCH 1/4] avahi: Explicitly handle AVAHI_BROWSER_REMOVE events
Stefan Brüns
stefan.bruens at rwth-aachen.de
Wed Dec 26 03:19:41 CET 2018
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.
---
modules/services_discovery/avahi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/services_discovery/avahi.c b/modules/services_discovery/
avahi.c
index 956835dbc1..1d71cc82d3 100644
--- a/modules/services_discovery/avahi.c
+++ b/modules/services_discovery/avahi.c
@@ -242,7 +242,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;
--
2.20.1
--
Stefan Brüns / Bergstraße 21 / 52062 Aachen
home: +49 241 53809034 mobile: +49 151 50412019
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20181226/4f706880/attachment.sig>
More information about the vlc-devel
mailing list