mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
glvideomixer: skip input frames with an alpha of 0
This commit is contained in:
parent
c44352b11f
commit
9f953f297f
1 changed files with 5 additions and 3 deletions
|
@ -611,12 +611,14 @@ gst_gl_video_mixer_callback (gpointer stuff)
|
||||||
in_width = GST_VIDEO_INFO_WIDTH (&GST_VIDEO_AGGREGATOR_PAD (pad)->info);
|
in_width = GST_VIDEO_INFO_WIDTH (&GST_VIDEO_AGGREGATOR_PAD (pad)->info);
|
||||||
in_height = GST_VIDEO_INFO_HEIGHT (&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) {
|
if (!frame->texture || in_width <= 0 || in_height <= 0
|
||||||
GST_DEBUG ("skipping texture:%u frame:%p width:%u height %u",
|
|| pad->alpha == 0.0f) {
|
||||||
frame->texture, frame, in_width, in_height);
|
GST_DEBUG ("skipping texture:%u frame:%p width:%u height:%u alpha:%f",
|
||||||
|
frame->texture, frame, in_width, in_height, pad->alpha);
|
||||||
count++;
|
count++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
in_tex = frame->texture;
|
in_tex = frame->texture;
|
||||||
pad_width = pad->width <= 0 ? in_width : pad->width;
|
pad_width = pad->width <= 0 ? in_width : pad->width;
|
||||||
pad_height = pad->height <= 0 ? in_height : pad->height;
|
pad_height = pad->height <= 0 ? in_height : pad->height;
|
||||||
|
|
Loading…
Reference in a new issue