From 50b1d52ba9adfa052c45cecce4f3ad27da8845f4 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 27 Jan 2013 11:39:09 +0000 Subject: [PATCH] [KSPROXY] - Fix some MSVC and GCC 4.7 warnings svn path=/trunk/; revision=58240 --- reactos/dll/directx/ksproxy/allocator.cpp | 2 +- reactos/dll/directx/ksproxy/output_pin.cpp | 2 +- reactos/dll/directx/ksproxy/proxy.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/dll/directx/ksproxy/allocator.cpp b/reactos/dll/directx/ksproxy/allocator.cpp index 8229bd2f56e..22db5540cc9 100644 --- a/reactos/dll/directx/ksproxy/allocator.cpp +++ b/reactos/dll/directx/ksproxy/allocator.cpp @@ -583,7 +583,7 @@ CKsAllocator::FreeMediaSamples() { IMediaSample * Sample = m_FreeList.top(); m_FreeList.pop(); - delete Sample; + Sample->Release(); } m_FreeSamples = false; diff --git a/reactos/dll/directx/ksproxy/output_pin.cpp b/reactos/dll/directx/ksproxy/output_pin.cpp index ac9078bac03..a272542be52 100644 --- a/reactos/dll/directx/ksproxy/output_pin.cpp +++ b/reactos/dll/directx/ksproxy/output_pin.cpp @@ -1681,7 +1681,7 @@ COutputPin::Connect(IPin *pReceivePin, const AM_MEDIA_TYPE *pmt) if (GetSupportedSets(&pGuid, &NumGuids)) { // load all proxy plugins - if (FAILED(LoadProxyPlugins(pGuid, NumGuids))); + if (FAILED(LoadProxyPlugins(pGuid, NumGuids))) { #ifdef KSPROXY_TRACE OutputDebugStringW(L"COutputPin::Connect LoadProxyPlugins failed\n"); diff --git a/reactos/dll/directx/ksproxy/proxy.cpp b/reactos/dll/directx/ksproxy/proxy.cpp index 175eff205ca..177be29a174 100644 --- a/reactos/dll/directx/ksproxy/proxy.cpp +++ b/reactos/dll/directx/ksproxy/proxy.cpp @@ -208,7 +208,6 @@ protected: CKsProxy::CKsProxy() : m_Ref(0), m_pGraph(0), - m_ReferenceClock((IReferenceClock*)this), m_FilterState(State_Stopped), m_hDevice(0), m_Plugins(), @@ -216,6 +215,7 @@ CKsProxy::CKsProxy() : m_Ref(0), m_DevicePath(0), m_hClock(0) { + m_ReferenceClock = this; InitializeCriticalSection(&m_Lock); }