[vlc-commits] renderer_discovery: Don't assume a demux filter will be provided

Hugo Beauzée-Luyssen git at videolan.org
Thu Sep 7 15:28:09 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Sep  7 15:24:27 2017 +0200| [441e902e5cdb1864ab2d3c645f6c87fa41a58603] | committer: Hugo Beauzée-Luyssen

renderer_discovery: Don't assume a demux filter will be provided

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

 src/misc/renderer_discovery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/renderer_discovery.c b/src/misc/renderer_discovery.c
index 18c544a196..21de88824a 100644
--- a/src/misc/renderer_discovery.c
+++ b/src/misc/renderer_discovery.c
@@ -91,7 +91,7 @@ vlc_renderer_item_new(const char *psz_type, const char *psz_name,
     if (psz_icon_uri && (p_item->psz_icon_uri = strdup(psz_icon_uri)) == NULL)
         goto error;
 
-    if ((p_item->psz_demux_filter = strdup(psz_demux_filter)) == NULL)
+    if (psz_demux_filter && (p_item->psz_demux_filter = strdup(psz_demux_filter)) == NULL)
         goto error;
 
     p_item->i_flags = i_flags;



More information about the vlc-commits mailing list