diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-12 00:55:34 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-12 00:55:34 +0400 |
commit | dc7d43515eec036a15024562969afc30158067ee (patch) | |
tree | 8716b546128ac7f18aaa5931ad6d41ac806c6e16 | |
parent | 3a4d708663e34f37539e7d0636877993706b09f7 (diff) |
Use a preprocessor check to exclude code from build at compile time
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5093 10f7b99b-c216-0410-bff0-8a66a9350fd8
-rw-r--r-- | src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp b/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp index 00db8ed10..41d84a5dc 100644 --- a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp +++ b/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp @@ -1496,12 +1496,15 @@ HRESULT CMPCVideoDecFilter::EndOfStream() {
CAutoLock cAutoLock(&m_csReceive);
- if (HAS_FFMPEG_VIDEO_DECODERS && m_nDXVAMode == MODE_SOFTWARE) {
+#if HAS_FFMPEG_VIDEO_DECODERS
+ if (m_nDXVAMode == MODE_SOFTWARE) {
REFERENCE_TIME rtStart = 0, rtStop = 0;
SoftwareDecode(NULL, NULL, 0, rtStart, rtStop);
- } else if (m_nDXVAMode == MODE_DXVA2) { // TODO - need check under WinXP on DXVA1
- m_pDXVADecoder->EndOfStream();
- }
+ } else
+#endif
+ if (m_nDXVAMode == MODE_DXVA2) { // TODO - need to check DXVA1 on WinXP
+ m_pDXVADecoder->EndOfStream();
+ }
return __super::EndOfStream();
}
|