From: Tim-Philipp Müller Date: Mon, 24 Jun 2019 09:44:29 +0000 (+0000) Subject: compositor: fix compiler warning due to c99-ism X-Git-Tag: 1.19.3~511^2~1013 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff0f659ca57f690fd7b4f99a8c4790b0adf259ef;p=platform%2Fupstream%2Fgstreamer.git compositor: fix compiler warning due to c99-ism --- diff --git a/gst/compositor/compositor.c b/gst/compositor/compositor.c index 092dca3..09f970f 100644 --- a/gst/compositor/compositor.c +++ b/gst/compositor/compositor.c @@ -844,6 +844,8 @@ _should_draw_background (GstVideoAggregator * vagg, gboolean bg_transparent) { GstVideoRectangle bg_rect; gboolean draw = TRUE; + GList *l; + bg_rect.x = bg_rect.y = 0; GST_OBJECT_LOCK (vagg); @@ -851,7 +853,7 @@ _should_draw_background (GstVideoAggregator * vagg, gboolean bg_transparent) bg_rect.h = GST_VIDEO_INFO_HEIGHT (&vagg->info); /* Check if the background is completely obscured by a pad * TODO: Also skip if it's obscured by a combination of pads */ - for (GList * l = GST_ELEMENT (vagg)->sinkpads; l; l = l->next) { + for (l = GST_ELEMENT (vagg)->sinkpads; l; l = l->next) { if (_pad_obscures_rectangle (vagg, l->data, bg_rect, bg_transparent)) { draw = FALSE; break;