diff options
author | v0lt <v0lt@rambler.ru> | 2013-03-31 22:57:34 +0400 |
---|---|---|
committer | v0lt <v0lt@rambler.ru> | 2013-03-31 22:57:34 +0400 |
commit | 35637b4878e5bff41519dea06cf6690dc7f6607c (patch) | |
tree | a24e416e6be625c724a28548e3376e7bdef37a14 /src | |
parent | cbc5adca5c8627159080534039efb0f26b3acb15 (diff) |
MPCVideoDec: fixed playback h264 after "stop" on Intel HD Graphics (second very safe version).
Diffstat (limited to 'src')
-rw-r--r-- | src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp b/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp index 5e24f8dbc..75d9b3c62 100644 --- a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp +++ b/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) {
|