vlc | branch: master | Steve Lhomme <rob...@videolabs.io> | Mon Aug  8 10:33:58 
2016 +0200| [d69ead5db43f541295a9cb39556809dcd0ad815e] | committer: Thomas 
Guillem

microdns: the "cc_demux" demux-filter should be used with the chromecast 
renderer

Signed-off-by: Thomas Guillem <tho...@gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d69ead5db43f541295a9cb39556809dcd0ad815e
---

 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 08c8668..4701436 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,

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to