diff options
author | Matthew Waters <matthew@centricular.com> | 2014-11-07 10:01:59 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2014-11-07 10:04:22 +1100 |
commit | 4580dd818333af56d4753804b0d733bec4008d55 (patch) | |
tree | 7c8ed05f350502038f1b3771c717bbbf50adc666 | |
parent | d77c70215bb684ef385e014db1b4381acd89f3f6 (diff) | |
download | gstreamer-plugins-bad-4580dd818333af56d4753804b0d733bec4008d55.tar.gz |
glimagesink: clamp the resize width/height to >= 1 to avoid a GL error
-rw-r--r-- | ext/gl/gstglimagesink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index c7e9a7bc3..cd3a9ff8a 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -1026,6 +1026,9 @@ gst_glimage_sink_on_resize (GstGLImageSink * gl_sink, gint width, gint height) g_signal_emit (gl_sink, gst_glimage_sink_signals[CLIENT_RESHAPE_SIGNAL], 0, width, height, &do_reshape); + width = MAX (1, width); + height = MAX (1, height); + gl_sink->window_width = width; gl_sink->window_height = height; |