[vlc-devel] [PATCH] libvlc: fix crash in video_get_size

Thomas Guillem thomas at gllm.fr
Mon Jun 29 13:38:27 CEST 2020


Hello,

My bad, thanks for fixing it.

I will merge it right away.

On Mon, Jun 29, 2020, at 13:30, Martin Finkel wrote:
> From: Martin Finkel <finkel2804 at gmail.com>
> 
> ---
>  lib/video.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/video.c b/lib/video.c
> index 07e26c03..e06adf14 100644
> --- a/lib/video.c
> +++ b/lib/video.c
> @@ -171,9 +171,9 @@ int libvlc_video_get_size( libvlc_media_player_t 
> *p_mi, unsigned ignored,
>          *px = track->video->i_width;
>          *py = track->video->i_height;
>          ret = 0;
> +        libvlc_media_track_release(track);
>      }
>  
> -    libvlc_media_track_release(track);
>      return ret;
>  }
>  
> -- 
> 2.20.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list