mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
glimagesink: clamp the resize width/height to >= 1 to avoid a GL error
This commit is contained in:
parent
d738b78229
commit
d9b724a3d2
1 changed files with 3 additions and 0 deletions
|
@ -1141,6 +1141,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,
|
||||
gl_sink->context, width, height, &do_reshape);
|
||||
|
||||
width = MAX (1, width);
|
||||
height = MAX (1, height);
|
||||
|
||||
gl_sink->window_width = width;
|
||||
gl_sink->window_height = height;
|
||||
|
||||
|
|
Loading…
Reference in a new issue