Skip to content

Commit

Permalink
Disallow P016 mediatype when connecting to EVR/VMR in case of softwar…
Browse files Browse the repository at this point in the history
…e decoding. It is doesn't work properly with some drivers.

Signed-off-by: clsid2 <[email protected]>
  • Loading branch information
clsid2 committed Nov 7, 2020
1 parent 40ec616 commit df218d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder/LAVVideo/LAVVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit df218d5

Please sign in to comment.