[vlc-devel] [PATCH 5/8] microdns: the "cc_demux" demux-filter should be used with the chromecast renderer

Thomas Guillem thomas at gllm.fr
Mon Sep 19 19:09:48 CEST 2016


From: Steve Lhomme <robUx4 at videolabs.io>

Signed-off-by: Thomas Guillem <thomas at gllm.fr>
---
 modules/services_discovery/microdns.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/modules/services_discovery/microdns.c b/modules/services_discovery/microdns.c
index 8b18200..b82cb5c 100644
--- a/modules/services_discovery/microdns.c
+++ b/modules/services_discovery/microdns.c
@@ -504,10 +504,13 @@ new_entries_rd_cb( void *p_this, int i_status, const struct rr_entry *p_entries
             break;
         }
 
-        if( strcmp( p_srv->psz_protocol, "chromecast" ) == 0
-         && ( psz_model == NULL
-           || strcasecmp( psz_model, "Chromecast Audio" ) != 0 ) )
-            p_srv->i_renderer_flags |= VLC_RENDERER_CAN_VIDEO;
+        if( strcmp( p_srv->psz_protocol, "chromecast" ) == 0)
+        {
+            if ( psz_model == NULL
+                || strcasecmp( psz_model, "Chromecast Audio" ) != 0 )
+                p_srv->i_renderer_flags |= VLC_RENDERER_CAN_VIDEO;
+            psz_demux_filter = "cc_demux";
+        }
 
         items_add_renderer( p_sys, p_rd, p_srv->psz_device_name, psz_uri,
                             psz_demux_filter, psz_icon_uri,
-- 
2.9.3



More information about the vlc-devel mailing list