compositor: Always draw if all input buffers are GAP

Otherwise output buffers will contain random scene
(previously rendered or arbitrary initial values) since we don't
draw onto output buffer at all.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1498>
This commit is contained in:
Seungha Yang 2022-01-07 18:25:00 +09:00 committed by GStreamer Marge Bot
parent a13309be4a
commit e37bbc054e

View file

@ -1383,6 +1383,11 @@ gst_compositor_aggregate_frames (GstVideoAggregator * vagg, GstBuffer * outbuf)
n_pads++;
}
/* If no prepared frame, we should draw background unconditionally in order
* to clear output buffer */
if (n_pads == 0)
draw_background = TRUE;
pads_info = g_newa (struct CompositePadInfo, n_pads);
n_pads = 0;