glimagesink: only update the output info iff there's a valid display_rect
authorMatthew Waters <matthew@centricular.com>
Fri, 28 Sep 2018 02:09:16 +0000 (12:09 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 4 Oct 2018 04:28:35 +0000 (14:28 +1000)
commit57f07fcbd442703442a10157b5662102e26f5e6b
treea4bb2448c2c3510e19861e62750561addd40156f
parentf960beaa98ddd144a8f3d1974ef0093d20a00450
glimagesink: only update the output info iff there's a valid display_rect

Attempting to use the MAX(1, display_rect) would result in the overlay
composition attempting to draw into 1x1 buffer and calculate some
grossly incorrect sizes.

previously failing case:
gltestsrc ! textoverlay text=GStreamer ! glimagesinkelement
ext/gl/gstglimagesink.c