Commit 3702e711 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by Gwenole Beauchesne

vaapiconvert: only set caps on newly created buffers.

Signed-off-by: default avatarGwenole Beauchesne <gwenole.beauchesne@intel.com>
parent 9b18e778
......@@ -745,9 +745,9 @@ gst_vaapiconvert_prepare_output_buffer(
buffer = gst_vaapi_video_buffer_new_from_pool(convert->surfaces);
if (!buffer)
return GST_FLOW_UNEXPECTED;
gst_buffer_set_caps(buffer, caps);
}
gst_buffer_set_caps(buffer, caps);
*poutbuf = buffer;
return GST_FLOW_OK;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment