[117/906] up gtk example

git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@564 93df14bb-0f41-7a43-8087-d3e2a2f0e464
This commit is contained in:
Julien Isorce 2008-07-06 16:50:29 +00:00 committed by Matthew Waters
parent 6b2276b9ab
commit 27c009b1ee

View file

@ -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);
}