From: Holger Kaelberer Date: Wed, 14 Mar 2012 16:42:24 +0000 (+0000) Subject: video: overlay-composition: check the right flags when searching for a cached rectangle X-Git-Tag: 1.19.3~511^2~6555^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b7f25a2f07082be5fb95d676bf90fda91511204;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst-libs/gst/video/video-overlay-composition.c b/gst-libs/gst/video/video-overlay-composition.c index 4633b6b..e6e5d2a 100644 --- a/gst-libs/gst/video/video-overlay-composition.c +++ b/gst-libs/gst/video/video-overlay-composition.c @@ -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;