mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
[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:
parent
6b2276b9ab
commit
27c009b1ee
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue