From df218d55c0c7919f1f35468becfd19e040ea2c49 Mon Sep 17 00:00:00 2001 From: clsid2 Date: Sat, 20 Jun 2020 12:00:00 +0000 Subject: [PATCH] Disallow P016 mediatype when connecting to EVR/VMR in case of software decoding. It is doesn't work properly with some drivers. Signed-off-by: clsid2 --- decoder/LAVVideo/LAVVideo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp index eb0948007..7739cd238 100644 --- a/decoder/LAVVideo/LAVVideo.cpp +++ b/decoder/LAVVideo/LAVVideo.cpp @@ -1075,8 +1075,8 @@ HRESULT CLAVVideo::CompleteConnect(PIN_DIRECTION dir, IPin *pReceivePin) BOOL bFailNonDXVA = false; // Fail P010 software connections before Windows 10 Creators Update (presumably it was fixed before Creators // already, but this is definitely a safe known condition) - if (!IsWindows10BuildOrNewer(15063) && (m_pOutput->CurrentMediaType().subtype == MEDIASUBTYPE_P010 || - m_pOutput->CurrentMediaType().subtype == MEDIASUBTYPE_P016)) + if (!IsWindows10BuildOrNewer(15063) && m_pOutput->CurrentMediaType().subtype == MEDIASUBTYPE_P010 || + m_pOutput->CurrentMediaType().subtype == MEDIASUBTYPE_P016) { // Check if we're connecting to EVR IBaseFilter *pFilter = GetFilterFromPin(pReceivePin);