Thomas Guillem [Fri, 1 Feb 2019 14:25:53 +0000 (15:25 +0100)]
sd: avahi: fix use-after-free of renderer items
(cherry picked from commit 7e6756602054e4c32d4d4407ada7eaf9396e7023) Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0008-sd-avahi-fix-use-after-free-of-renderer-items.patch
Thomas Guillem [Fri, 1 Feb 2019 14:25:42 +0000 (15:25 +0100)]
sd: avahi: fix invalid release of renderer items
(cherry picked from commit 49a917ddc37273522bbf44016d4b856edf873086) Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0007-sd-avahi-fix-invalid-release-of-renderer-items.patch
Stefan Brüns [Sat, 19 Jan 2019 21:41:14 +0000 (22:41 +0100)]
avahi: Add support for chromecast renderer discovery
Allow discovery of chromecast devices with the Avahi DNS-SD resolver.
Tested with a Chromecast version 2 (Audio/Video).
See: #19921
https://forum.videolan.org/viewtopic.php?t=146211 Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit 070060d1815eb2bd00d5eff9f13d153c8e4ff00e) Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0006-avahi-Add-support-for-chromecast-renderer-discovery.patch
Stefan Brüns [Sat, 19 Jan 2019 21:41:13 +0000 (22:41 +0100)]
avahi: Prepare code for support of renderer discovery
Instead of passing the services_discovery_t as userdata for the callbacks,
use a struct discovery_sys_t which is common for both the input and renderer
private data structures.
The discovery_sys_t is embedded into the service type specific private
member structs, i.e. struct services_discovery_sys_t (done here) and
struct vlc_renderer_discovery_sys (next patch).
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit da019696fbc76b7afea69b33f2c537c85a350a59) Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0005-avahi-Prepare-code-for-support-of-renderer-discovery.patch
Stefan Brüns [Sat, 19 Jan 2019 21:41:12 +0000 (22:41 +0100)]
avahi: Fix leaking AvahiServiceResolver in the error paths
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit 6d4afd268bbbf5c99609bd777d740a624cf7d705) Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0004-avahi-Fix-leaking-AvahiServiceResolver-in-the-error-.patch
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