Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MPCVideoDec: fixed playback h264 after "stop" on Intel HD Graphics (s…

…econd very safe version).
  • Loading branch information...
commit 35637b4878e5bff41519dea06cf6690dc7f6607c 1 parent cbc5adc
@v0lt v0lt authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp
View
4 src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp
@@ -2363,6 +2363,10 @@ HRESULT CMPCVideoDecFilter::CreateDXVA2Decoder(UINT nNumRenderTargets, IDirect3D
pDecoderRenderTargets, nNumRenderTargets, &pDirectXVideoDec);
if (SUCCEEDED(hr)) {
+ if (m_nPCIVendor == PCIV_Intel) {
+ // need recreate dxva decoder after "stop" on Intel HD Graphics
+ SAFE_DELETE (m_pDXVADecoder);
+ }
if (!m_pDXVADecoder) {
m_pDXVADecoder = CDXVADecoder::CreateDecoder(this, pDirectXVideoDec, &m_DXVADecoderGUID, GetPicEntryNumber(), &m_DXVA2Config);
if (m_pDXVADecoder) {
Please sign in to comment.
Something went wrong with that request. Please try again.