mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
27216d6f2e
commit
2c1315cae9
1 changed files with 6 additions and 4 deletions
|
@ -938,14 +938,16 @@ gst_msdkvpp_transform (GstBaseTransform * trans, GstBuffer * inbuf,
|
||||||
} else {
|
} else {
|
||||||
release_out_surface (thiz, out_surface);
|
release_out_surface (thiz, out_surface);
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
out_surface = gst_msdk_import_to_msdk_surface (outbuf, thiz->context,
|
out_surface =
|
||||||
&thiz->srcpad_info);
|
gst_msdk_import_to_msdk_surface (outbuf_new, thiz->context,
|
||||||
|
&thiz->srcpad_buffer_pool_info);
|
||||||
#else
|
#else
|
||||||
out_surface =
|
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
|
#endif
|
||||||
if (out_surface) {
|
if (out_surface) {
|
||||||
out_surface->buf = gst_buffer_ref (outbuf);
|
out_surface->buf = gst_buffer_ref (outbuf_new);
|
||||||
create_new_surface = TRUE;
|
create_new_surface = TRUE;
|
||||||
} else {
|
} else {
|
||||||
GST_ERROR_OBJECT (thiz, "Failed to get msdk outsurface!");
|
GST_ERROR_OBJECT (thiz, "Failed to get msdk outsurface!");
|
||||||
|
|
Loading…
Reference in a new issue