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

Steve Lhomme robux4 at videolabs.io
Mon Aug 8 10:33:58 CEST 2016


---
 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 d06e63c..42e1b33 100644
--- a/modules/services_discovery/microdns.c
+++ b/modules/services_discovery/microdns.c
@@ -503,10 +503,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_icon_uri, p_srv->i_renderer_flags,
-- 
2.8.2



More information about the vlc-devel mailing list