diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-05-28 18:34:22 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-05-28 18:34:22 +0400 |
commit | a8934af8fd2d4f6986049a1d6d46b1b6a70399e5 (patch) | |
tree | 744426407972d36b293d143bac9c6dc4c7b01067 /src/filters/transform | |
parent | 1e52d83a8eaef22d23b092c39af7b70a718cfa9e (diff) |
* Use IsWinVistaOrLater in MPCVideoDecFilter.cpp
* Use the MpcAudioRendererName and MPCVideoDecName defines
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4931 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform')
-rw-r--r-- | src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp b/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp index 264ace989..4bf4a5571 100644 --- a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp +++ b/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp @@ -520,7 +520,7 @@ BOOL CALLBACK EnumFindProcessWnd (HWND hwnd, LPARAM lParam) GetClassName (hwnd, WindowClass, _countof(WindowClass));
if (procid == GetCurrentProcessId() && _tcscmp (WindowClass, _T("MediaPlayerClassicW")) == 0) {
- HWND* pWnd = (HWND*) lParam;
+ HWND* pWnd = (HWND*)lParam;
*pWnd = hwnd;
return FALSE;
}
@@ -528,11 +528,11 @@ BOOL CALLBACK EnumFindProcessWnd (HWND hwnd, LPARAM lParam) }
CMPCVideoDecFilter::CMPCVideoDecFilter(LPUNKNOWN lpunk, HRESULT* phr)
- : CBaseVideoFilter(NAME("MPC - Video decoder"), lpunk, phr, __uuidof(this))
+ : CBaseVideoFilter(MPCVideoDecName, lpunk, phr, __uuidof(this))
{
- HWND hWnd = NULL;
+ HWND hWnd = NULL;
- if (IsVistaOrAbove()) {
+ if (IsWinVistaOrLater()) {
for (int i=0; i<_countof(ffCodecs); i++) {
if (ffCodecs[i].nFFCodec == CODEC_ID_H264) {
ffCodecs[i].DXVAModes = &DXVA_H264_VISTA;
|