[vlc-devel] [PATCH] libvlc: fix crash in video_get_size
Martin Finkel
finkel2804 at gmail.com
Mon Jun 29 13:30:17 CEST 2020
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
More information about the vlc-devel
mailing list