[vlc-commits] es_out: fix NULL dereference in EsOutIsProgramVisible
Francois Cartegnie
git at videolan.org
Wed Jul 15 14:41:52 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 15 14:35:30 2020 +0200| [07101865750f204ba4567719757e8a1093b3f077] | committer: Francois Cartegnie
es_out: fix NULL dereference in EsOutIsProgramVisible
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07101865750f204ba4567719757e8a1093b3f077
---
src/input/es_out.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index c78205a278..2ad863021c 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1250,7 +1250,8 @@ static bool EsOutIsProgramVisible( es_out_t *out, input_source_t *source, int i_
{
es_out_sys_t *p_sys = container_of(out, es_out_sys_t, out);
return p_sys->i_group_id == 0
- || (p_sys->i_group_id == i_group && p_sys->p_pgrm->source == source);
+ || (p_sys->i_group_id == i_group &&
+ p_sys->p_pgrm && p_sys->p_pgrm->source == source);
}
/* EsOutProgramSelect:
More information about the vlc-commits
mailing list