mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
glimagesink: clamp the resize width/height to >= 1 to avoid a GL error
This commit is contained in:
parent
0fc6cc6874
commit
7e62c790d2
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