[vlc-devel] [PATCH] Fixed crash when getting statistics on uninitalized media (with thread-safe fix)

Rémi Denis-Courmont remi at remlab.net
Thu Oct 19 11:42:38 CEST 2017


Le 19 octobre 2017 12:24:09 GMT+03:00, "Jérémy VIGNELLES" <jeremy.vignelles at dev3i.fr> a écrit :
>---
> lib/media.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/lib/media.c b/lib/media.c
>index 8da5a130e2..fcfdcd702b 100644
>--- a/lib/media.c
>+++ b/lib/media.c
>@@ -698,7 +698,7 @@ libvlc_media_subitems( libvlc_media_t * p_md )
> int libvlc_media_get_stats( libvlc_media_t *p_md,
>                             libvlc_media_stats_t *p_stats )
> {
>-    if( !p_md->p_input_item )
>+    if( !p_md->p_input_item || !p_md->p_input_item->p_stats )
>         return false;
> 
>     input_stats_t *p_itm_stats = p_md->p_input_item->p_stats;
>-- 
>2.11.0
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

This patch is unchanged.
-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.


More information about the vlc-devel mailing list