msdkvpp: Fix upper frc

Refact vpp commit 4c6b719445 broke the
upper FRC, here to fix this by using outbuf_new.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3223>
This commit is contained in:
Mengkejiergeli Ba 2022-10-18 16:34:41 +08:00 committed by Haihao Xiang
parent 27216d6f2e
commit 2c1315cae9

View file

@ -938,14 +938,16 @@ gst_msdkvpp_transform (GstBaseTransform * trans, GstBuffer * inbuf,
} else {
release_out_surface (thiz, out_surface);
#ifndef _WIN32
out_surface = gst_msdk_import_to_msdk_surface (outbuf, thiz->context,
&thiz->srcpad_info);
out_surface =
gst_msdk_import_to_msdk_surface (outbuf_new, thiz->context,
&thiz->srcpad_buffer_pool_info);
#else
out_surface =
gst_msdk_import_sys_mem_to_msdk_surface (outbuf, thiz->srcpad_info);
gst_msdk_import_sys_mem_to_msdk_surface (outbuf_new,
thiz->srcpad_buffer_pool_info);
#endif
if (out_surface) {
out_surface->buf = gst_buffer_ref (outbuf);
out_surface->buf = gst_buffer_ref (outbuf_new);
create_new_surface = TRUE;
} else {
GST_ERROR_OBJECT (thiz, "Failed to get msdk outsurface!");