mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
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:
parent
a13309be4a
commit
e37bbc054e
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue