Commit ca9bb993 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

demux: allow filter creation to fail

Just skip the chain entry. This is consistent with the behaviour of all
or almost all other configuration chains (notably stream filters).
parent 47c53ad4
......@@ -634,21 +634,10 @@ demux_t *demux_FilterChainNew( demux_t *p_demux, const char *psz_chain )
free( p_name );
if( p_next == NULL )
goto error;
p_demux = p_next;
}
vlc_array_clear(&name);
return p_demux;
error:
demux_Delete(p_demux);
while(i--)
free(vlc_array_item_at_index(&name, i));
vlc_array_clear(&name);
return 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