Author: tfaber
Date: Sun Jan 27 11:39:09 2013
New Revision: 58240
URL:
http://svn.reactos.org/svn/reactos?rev=58240&view=rev
Log:
[KSPROXY]
- Fix some MSVC and GCC 4.7 warnings
Modified:
trunk/reactos/dll/directx/ksproxy/allocator.cpp
trunk/reactos/dll/directx/ksproxy/output_pin.cpp
trunk/reactos/dll/directx/ksproxy/proxy.cpp
Modified: trunk/reactos/dll/directx/ksproxy/allocator.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ksproxy/alloca…
==============================================================================
--- trunk/reactos/dll/directx/ksproxy/allocator.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/ksproxy/allocator.cpp [iso-8859-1] Sun Jan 27 11:39:09 2013
@@ -583,7 +583,7 @@
{
IMediaSample * Sample = m_FreeList.top();
m_FreeList.pop();
- delete Sample;
+ Sample->Release();
}
m_FreeSamples = false;
Modified: trunk/reactos/dll/directx/ksproxy/output_pin.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ksproxy/output…
==============================================================================
--- trunk/reactos/dll/directx/ksproxy/output_pin.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/ksproxy/output_pin.cpp [iso-8859-1] Sun Jan 27 11:39:09
2013
@@ -1681,7 +1681,7 @@
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");
Modified: trunk/reactos/dll/directx/ksproxy/proxy.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ksproxy/proxy.…
==============================================================================
--- trunk/reactos/dll/directx/ksproxy/proxy.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/ksproxy/proxy.cpp [iso-8859-1] Sun Jan 27 11:39:09 2013
@@ -208,7 +208,6 @@
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 @@
m_DevicePath(0),
m_hClock(0)
{
+ m_ReferenceClock = this;
InitializeCriticalSection(&m_Lock);
}