diff --git a/media_softlet/agnostic/common/vp/hal/pipeline/vp_packet_reuse_manager.cpp b/media_softlet/agnostic/common/vp/hal/pipeline/vp_packet_reuse_manager.cpp index 18dc9704e48..d9e894a56e6 100644 --- a/media_softlet/agnostic/common/vp/hal/pipeline/vp_packet_reuse_manager.cpp +++ b/media_softlet/agnostic/common/vp/hal/pipeline/vp_packet_reuse_manager.cpp @@ -827,6 +827,10 @@ MOS_STATUS VpPacketReuseManager::PreparePacketPipeReuse(SwFilterPipe *&swFilterP // unreused feature && nullptr != swfilter m_reusable = false; isPacketPipeReused = false; + if (m_pipeReused) + { + m_packetPipeFactory.ReturnPacketPipe(m_pipeReused); + } return MOS_STATUS_SUCCESS; } else diff --git a/media_softlet/agnostic/common/vp/hal/utils/vp_dumper.cpp b/media_softlet/agnostic/common/vp/hal/utils/vp_dumper.cpp index 0986e145835..1650a99e131 100644 --- a/media_softlet/agnostic/common/vp/hal/utils/vp_dumper.cpp +++ b/media_softlet/agnostic/common/vp/hal/utils/vp_dumper.cpp @@ -1240,7 +1240,7 @@ MOS_STATUS VpSurfaceDumper::DumpSurfaceToFile( } VP_DEBUG_CHK_STATUS(MosUtilities::MosWriteFileFromPtr(sOsPath, pDst, dwSize)); - + VP_PUBLIC_NORMALMESSAGE("VP surface dump to %s", sOsPath); #if !EMUL // Dump Aux surface data if (hasAuxSurf && enableAuxDump) @@ -1524,7 +1524,7 @@ MOS_STATUS VpSurfaceDumper::DumpSurfaceToFile( } VP_DEBUG_CHK_STATUS(MosUtilities::MosWriteFileFromPtr(sOsPath, pDst, dwSize)); - + VP_PUBLIC_NORMALMESSAGE("VP surface dump to %s", sOsPath); finish: MOS_SafeFreeMemory(pDst);