From: Matthew Waters Date: Wed, 24 Sep 2014 04:29:37 +0000 (+1000) Subject: glvideomixer: skip input frames with an alpha of 0 X-Git-Tag: 1.16.2~260^2~339 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0476bf0146d2991e321cfa4e0a503c271f0d656;p=platform%2Fupstream%2Fgst-plugins-base.git glvideomixer: skip input frames with an alpha of 0 --- diff --git a/ext/gl/gstglvideomixer.c b/ext/gl/gstglvideomixer.c index 2b96bc5..9ffdcb6 100644 --- a/ext/gl/gstglvideomixer.c +++ b/ext/gl/gstglvideomixer.c @@ -611,12 +611,14 @@ gst_gl_video_mixer_callback (gpointer stuff) in_width = GST_VIDEO_INFO_WIDTH (&GST_VIDEO_AGGREGATOR_PAD (pad)->info); in_height = GST_VIDEO_INFO_HEIGHT (&GST_VIDEO_AGGREGATOR_PAD (pad)->info); - if (!frame->texture || in_width <= 0 || in_height <= 0) { - GST_DEBUG ("skipping texture:%u frame:%p width:%u height %u", - frame->texture, frame, in_width, in_height); + if (!frame->texture || in_width <= 0 || in_height <= 0 + || pad->alpha == 0.0f) { + GST_DEBUG ("skipping texture:%u frame:%p width:%u height:%u alpha:%f", + frame->texture, frame, in_width, in_height, pad->alpha); count++; continue; } + in_tex = frame->texture; pad_width = pad->width <= 0 ? in_width : pad->width; pad_height = pad->height <= 0 ? in_height : pad->height;