diff --git a/gst-libs/gst/gl/x11/gstglwindow_x11.c b/gst-libs/gst/gl/x11/gstglwindow_x11.c index 5cbf46a6b1..960d39fb81 100644 --- a/gst-libs/gst/gl/x11/gstglwindow_x11.c +++ b/gst-libs/gst/gl/x11/gstglwindow_x11.c @@ -450,8 +450,8 @@ draw_cb (gpointer data) GST_TRACE_OBJECT (window, "window size %ux%u", attr.width, attr.height); if (window_x11->parent_win && - (window_x11->priv->render_rect.w < 0 || - window_x11->priv->render_rect.h < 0)) { + (window_x11->priv->render_rect.w <= 0 || + window_x11->priv->render_rect.h <= 0)) { XWindowAttributes attr_parent; XGetWindowAttributes (window_x11->device, window_x11->parent_win, &attr_parent);