From 27c009b1eede6d206ab174616e9adbc7f6fdbc2d Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Sun, 6 Jul 2008 16:50:29 +0000 Subject: [PATCH] [117/906] up gtk example git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@564 93df14bb-0f41-7a43-8087-d3e2a2f0e464 --- gst/gl/gstglimagesink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/gl/gstglimagesink.c b/gst/gl/gstglimagesink.c index 0ed97e3ec1..a50258aa35 100644 --- a/gst/gl/gstglimagesink.c +++ b/gst/gl/gstglimagesink.c @@ -481,6 +481,8 @@ gst_glimage_sink_render (GstBaseSink* bsink, GstBuffer* buf) gst_gl_display_set_client_draw_callback (glimage_sink->display, glimage_sink->clientDrawCallback); + + gst_gl_display_resize_context (glimage_sink->display, glimage_sink->width, glimage_sink->height); } //blocking call @@ -555,7 +557,7 @@ gst_glimage_sink_expose (GstXOverlay* overlay) GstGLImageSink* glimage_sink = GST_GLIMAGE_SINK (overlay); //redisplay opengl scene - if (glimage_sink->display) + if (glimage_sink->display && glimage_sink->window_id) gst_gl_display_redisplay (glimage_sink->display, 0, 0, 0); }