From: Nirbheek Chauhan Date: Thu, 13 Jun 2019 15:00:03 +0000 (+0530) Subject: compositor: Sprinkle some const in prototypes X-Git-Tag: 1.19.3~511^2~1030 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb1650cfda6c78edafa1d04929b13cba9c9842c0;p=platform%2Fupstream%2Fgstreamer.git compositor: Sprinkle some const in prototypes These helper functions don't edit the rectangles passed in. --- diff --git a/gst/compositor/compositor.c b/gst/compositor/compositor.c index 6bd6fca..b7c4f91 100644 --- a/gst/compositor/compositor.c +++ b/gst/compositor/compositor.c @@ -282,7 +282,8 @@ _mixer_pad_get_output_size (GstCompositorPad * comp_pad, gint out_par_n, /* Test whether rectangle2 contains rectangle 1 (geometrically) */ static gboolean -is_rectangle_contained (GstVideoRectangle rect1, GstVideoRectangle rect2) +is_rectangle_contained (const GstVideoRectangle rect1, + const GstVideoRectangle rect2) { if ((rect2.x <= rect1.x) && (rect2.y <= rect1.y) && ((rect2.x + rect2.w) >= (rect1.x + rect1.w)) && @@ -314,7 +315,7 @@ clamp_rectangle (gint x, gint y, gint w, gint h, gint outer_width, /* Call this with the lock taken */ static gboolean _pad_obscures_rectangle (GstVideoAggregator * vagg, GstVideoAggregatorPad * pad, - GstVideoRectangle rect, gboolean rect_transparent) + const GstVideoRectangle rect, gboolean rect_transparent) { GstVideoRectangle pad_rect; GstCompositorPad *cpad = GST_COMPOSITOR_PAD (pad);