Commit 359f0799 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

renderer_discovery: psz_icon_uri can be NULL

parent 74bbc098
......@@ -88,7 +88,7 @@ vlc_renderer_item_new(const char *psz_type, const char *psz_name,
psz_extra_sout != NULL ? psz_extra_sout : "") == -1)
goto error;
if ((p_item->psz_icon_uri = strdup(psz_icon_uri)) == NULL)
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment