[vlc-devel] commit: Fixed xcb resize support. (Laurent Aimar )
git version control
git at videolan.org
Thu Apr 16 22:28:51 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Apr 16 22:26:48 2009 +0200| [00155d409b3b839f85f7201face93b06a64b56d6] | committer: Laurent Aimar
Fixed xcb resize support.
Yep, there is some black magic here ;)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=00155d409b3b839f85f7201face93b06a64b56d6
---
modules/video_output/xcb/xcb.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/xcb/xcb.c b/modules/video_output/xcb/xcb.c
index db6f0d6..3c52f77 100644
--- a/modules/video_output/xcb/xcb.c
+++ b/modules/video_output/xcb/xcb.c
@@ -427,6 +427,8 @@ static int Init (vout_thread_t *vout)
const xcb_screen_t *screen = p_sys->screen;
unsigned x, y, width, height;
+ I_OUTPUTPICTURES = 0;
+
/* Determine parent window and size */
if (vout->b_fullscreen)
{
@@ -534,8 +536,8 @@ static void Deinit (vout_thread_t *vout)
{
vout_sys_t *p_sys = vout->p_sys;
- while (I_OUTPUTPICTURES > 0)
- PictureDeinit (PP_OUTPUTPICTURE[--I_OUTPUTPICTURES]);
+ for (int i = 0; i < I_OUTPUTPICTURES; i++)
+ PictureDeinit (PP_OUTPUTPICTURE[i]);
xcb_unmap_window (p_sys->conn, p_sys->window);
xcb_destroy_window (p_sys->conn, p_sys->window);
More information about the vlc-devel
mailing list