Skip to content
Snippets Groups Projects
Commit 129b682c authored by Steve Lhomme's avatar Steve Lhomme
Browse files

demux: fix potential crash if the renderer has no demux filter

parent 0feb493b
No related branches found
No related tags found
No related merge requests found
......@@ -538,8 +538,9 @@ static bool demux_filter_enable_disable(demux_t *p_demux,
{
struct vlc_demux_private *priv = vlc_stream_Private(p_demux);
if (strcmp(module_get_name(priv->module, false), psz_demux) == 0
|| strcmp(module_get_name(priv->module, true), psz_demux) == 0)
if ( psz_demux &&
(strcmp(module_get_name(priv->module, false), psz_demux) == 0
|| strcmp(module_get_name(priv->module, true), psz_demux) == 0) )
{
demux_Control( p_demux,
b_enable ? DEMUX_FILTER_ENABLE : DEMUX_FILTER_DISABLE );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment