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

Francois Cartegnie fcvlcdev at free.fr
Mon Jun 29 13:35:11 CEST 2020


Le 29/06/2020 à 13:30, Martin Finkel a écrit :
> 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;
>  }
>  
>  

yes, seems ok

* \param track valid track


-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list