projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d97e03
)
glimagesink: only attempt a resize when the window has already resized
author
Matthew Waters
<matthew@centricular.com>
Thu, 27 Nov 2014 02:01:19 +0000
(13:01 +1100)
committer
Matthew Waters
<matthew@centricular.com>
Thu, 27 Nov 2014 02:03:21 +0000
(13:03 +1100)
fixes a black startup screen on wayland
ext/gl/gstglimagesink.c
patch
|
blob
|
history
diff --git
a/ext/gl/gstglimagesink.c
b/ext/gl/gstglimagesink.c
index
c06f580
..
1c3a7c4
100644
(file)
--- a/
ext/gl/gstglimagesink.c
+++ b/
ext/gl/gstglimagesink.c
@@
-1260,7
+1260,8
@@
gst_glimage_sink_on_draw (GstGLImageSink * gl_sink)
/* opengl scene */
GST_TRACE ("redrawing texture:%u", gl_sink->redisplay_texture);
- if (gl_sink->caps_change) {
+ if (gl_sink->caps_change && gl_sink->window_width > 0
+ && gl_sink->window_height > 0) {
GST_GLIMAGE_SINK_UNLOCK (gl_sink);
gst_glimage_sink_on_resize (gl_sink, gl_sink->window_width,
gl_sink->window_height);