mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
compositor: Don't do any conversions if the pad is completely transparent anyway
This commit is contained in:
parent
7d8b88ae3b
commit
e1f3214c6c
1 changed files with 6 additions and 1 deletions
|
@ -390,7 +390,12 @@ gst_compositor_pad_prepare_frame (GstVideoAggregatorPad * pad,
|
|||
g_free (wanted_colorimetry);
|
||||
}
|
||||
|
||||
if (cpad->convert) {
|
||||
if (cpad->alpha == 0.0) {
|
||||
GST_DEBUG_OBJECT (vagg, "Pad has alpha 0.0, not converting frame");
|
||||
converted_frame = NULL;
|
||||
gst_video_frame_unmap (frame);
|
||||
g_slice_free (GstVideoFrame, frame);
|
||||
} else if (cpad->convert) {
|
||||
gint converted_size;
|
||||
|
||||
converted_frame = g_slice_new0 (GstVideoFrame);
|
||||
|
|
Loading…
Reference in a new issue