From 64da2d69863680f9298f1a1b32131ce2c51fb468 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sun, 18 Apr 2010 03:57:26 +0200 Subject: [PATCH] Disable invalid access of internal vout fields. --- src/control/video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/control/video.c b/src/control/video.c index aac2c653ab..8614c6286c 100644 --- a/src/control/video.c +++ b/src/control/video.c @@ -158,6 +158,7 @@ libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, unsigned num, int libvlc_video_get_size( libvlc_media_player_t *p_mi, unsigned num, unsigned *restrict px, unsigned *restrict py ) { +#if 0 vout_thread_t *p_vout = GetVout (p_mi, num); if (p_vout == NULL) return -1; @@ -166,6 +167,9 @@ int libvlc_video_get_size( libvlc_media_player_t *p_mi, unsigned num, *py = p_vout->i_window_width; vlc_object_release (p_vout); return 0; +#else + return -1; +#endif } int libvlc_video_get_height( libvlc_media_player_t *p_mi ) -- 2.39.2