From 2c1315cae92618ffa74764653cf58a92b0cef57d Mon Sep 17 00:00:00 2001 From: Mengkejiergeli Ba Date: Tue, 18 Oct 2022 16:34:41 +0800 Subject: [PATCH] msdkvpp: Fix upper frc Refact vpp commit 4c6b7194451ff6fbfe88834219d982302114d74b broke the upper FRC, here to fix this by using outbuf_new. Part-of: --- subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c index 71162987e6..0b7f2e71a9 100644 --- a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c +++ b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c @@ -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!");