mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
video: overlay-composition: check the right flags when searching for a cached rectangle
Compare the flags of the *cached* rectangle to the desired flags when checking for a suitable rectangle in the cache. https://bugzilla.gnome.org/show_bug.cgi?id=668483
This commit is contained in:
parent
f234923c07
commit
6b7f25a2f0
1 changed files with 1 additions and 2 deletions
|
@ -935,8 +935,7 @@ gst_video_overlay_rectangle_get_pixels_argb_internal (GstVideoOverlayRectangle *
|
|||
|
||||
if (r->width == wanted_width &&
|
||||
r->height == wanted_height &&
|
||||
gst_video_overlay_rectangle_is_same_alpha_type (rectangle->flags,
|
||||
flags)) {
|
||||
gst_video_overlay_rectangle_is_same_alpha_type (r->flags, flags)) {
|
||||
/* we'll keep these rectangles around until finalize, so it's ok not
|
||||
* to take our own ref here */
|
||||
scaled_rect = r;
|
||||
|
|
Loading…
Reference in a new issue