[vlc-devel] [PATCH] demux: fix potential crash if the renderer has no demux filter
Steve Lhomme
robux4 at ycbcr.xyz
Fri Jun 29 09:53:09 CEST 2018
---
src/input/demux.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/input/demux.c b/src/input/demux.c
index f13eda7b5d..bb87fa39c2 100644
--- a/src/input/demux.c
+++ b/src/input/demux.c
@@ -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 );
--
2.17.0
More information about the vlc-devel
mailing list