From 60333576352e74b2bfb9201e415d7becee54222c Mon Sep 17 00:00:00 2001 From: "Pohsiang (John) Hsu" Date: Wed, 9 Jul 2025 20:36:51 -0700 Subject: [PATCH] mediafoundation: don't send METransformNeedInput when in Flush/Drain Reviewed-by: Rohit Athavale Part-of: --- src/gallium/frontends/mediafoundation/mftransform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/mediafoundation/mftransform.cpp b/src/gallium/frontends/mediafoundation/mftransform.cpp index c180c8faf7b..9e4ee419c7f 100644 --- a/src/gallium/frontends/mediafoundation/mftransform.cpp +++ b/src/gallium/frontends/mediafoundation/mftransform.cpp @@ -1413,7 +1413,7 @@ CDX12EncHMFT::xThreadProc( void *pCtx ) pThis->m_eventInputDrained.set(); } pThis->m_eventHaveInput.reset(); - if( !pThis->m_bLowLatency ) + if( !pThis->m_bLowLatency && !pThis->m_bFlushing && !pThis->m_bDraining ) { pThis->m_dwNeedInputCount++; HRESULT hr = pThis->QueueEvent( METransformNeedInput, GUID_NULL, S_OK, nullptr );