diff options
author | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-28 05:23:17 +0400 |
---|---|---|
committer | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-28 05:23:17 +0400 |
commit | b1389b5bf79340e1f348eb387c3ff6d2dd390644 (patch) | |
tree | 577a73bb919aaaff213334bda90eed4b31fb38f1 /src/apps/mplayerc/FGManager.cpp | |
parent | 169ce3df8f2db6eb61705d67e1588498cdea76d3 (diff) |
Minor code cleanup
Added SSE2 VD memcpy implementation
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1965 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/FGManager.cpp')
-rw-r--r-- | src/apps/mplayerc/FGManager.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/apps/mplayerc/FGManager.cpp b/src/apps/mplayerc/FGManager.cpp index 8e4d4ca58..a858ca3de 100644 --- a/src/apps/mplayerc/FGManager.cpp +++ b/src/apps/mplayerc/FGManager.cpp @@ -404,6 +404,7 @@ HRESULT CFGManager::AddSourceFilter(CFGFilter* pFGF, LPCWSTR lpcwstrFileName, LP pmt = &mt;
}
+ // sometimes looping with AviSynth
if(FAILED(hr = pFSF->Load(lpcwstrFileName, pmt)))
{
RemoveFilter(pBF);
@@ -412,10 +413,15 @@ HRESULT CFGManager::AddSourceFilter(CFGFilter* pFGF, LPCWSTR lpcwstrFileName, LP // doh :P
BeginEnumMediaTypes(GetFirstPin(pBF, PINDIR_OUTPUT), pEMT, pmt)
- {
- if(pmt->subtype == GUIDFromCString(_T("{640999A0-A946-11D0-A520-000000000000}"))
- || pmt->subtype == GUIDFromCString(_T("{640999A1-A946-11D0-A520-000000000000}"))
- || pmt->subtype == GUIDFromCString(_T("{D51BD5AE-7548-11CF-A520-0080C77EF58A}")))
+ {
+ static const GUID guid1 =
+ { 0x640999A0, 0xA946, 0x11D0, { 0xA5, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } };
+ static const GUID guid2 =
+ { 0x640999A1, 0xA946, 0x11D0, { 0xA5, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } };
+ static const GUID guid3 =
+ { 0xD51BD5AE, 0x7548, 0x11CF, { 0xA5, 0x20, 0x00, 0x80, 0xC7, 0x7E, 0xF5, 0x8A } };
+
+ if(pmt->subtype == guid1 || pmt->subtype == guid2 || pmt->subtype == guid3)
{
RemoveFilter(pBF);
pFGF = DNew CFGFilterRegistry(CLSID_NetShowSource);
|