[vlc-commits] commit: Disable invalid access of internal vout fields. (Laurent Aimar )
git at videolan.org
git at videolan.org
Sun Apr 18 15:03:20 CEST 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Apr 18 03:57:26 2010 +0200| [64da2d69863680f9298f1a1b32131ce2c51fb468] | committer: Laurent Aimar
Disable invalid access of internal vout fields.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64da2d69863680f9298f1a1b32131ce2c51fb468
---
src/control/video.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/control/video.c b/src/control/video.c
index aac2c65..8614c62 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 )
More information about the vlc-commits
mailing list