- Add support for IKsClockForward interface which is an alias for IKsObject
- CKsClockForwarder is now functional
svn path=/trunk/; revision=46397
const GUID KSCATEGORY_CLOCK = {0x53172480, 0x4791, 0x11D0, {0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00}};
#endif
const GUID KSCATEGORY_CLOCK = {0x53172480, 0x4791, 0x11D0, {0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00}};
#endif
+const GUID IID_IKsClockForwarder = {0x877e4352, 0x6fea, 0x11d0, {0xb8, 0x63, 0x00, 0xaa, 0x00, 0xa2, 0x16, 0xa1}};
+
DWORD WINAPI CKsClockForwarder_ThreadStartup(LPVOID lpParameter);
class CKsClockForwarder : public IDistributorNotify,
DWORD WINAPI CKsClockForwarder_ThreadStartup(LPVOID lpParameter);
class CKsClockForwarder : public IDistributorNotify,
reinterpret_cast<IUnknown*>(*Output)->AddRef();
return NOERROR;
}
reinterpret_cast<IUnknown*>(*Output)->AddRef();
return NOERROR;
}
- if (IsEqualGUID(refiid, IID_IKsObject))
+ if (IsEqualGUID(refiid, IID_IKsObject) ||
+ IsEqualGUID(refiid, IID_IKsClockForwarder))
{
*Output = (IKsObject*)(this);
reinterpret_cast<IKsObject*>(*Output)->AddRef();
{
*Output = (IKsObject*)(this);
reinterpret_cast<IKsObject*>(*Output)->AddRef();
-#if 0
- if (IsEqualGUID(refiid, IID_IKsClockForwarder))
- {
- *Output = PVOID(this);
- reinterpret_cast<IKsObject*>(*Output)->AddRef();
- return NOERROR;
- }
-#endif
-
STDMETHODCALLTYPE
CKsClockForwarder::Stop()
{
STDMETHODCALLTYPE
CKsClockForwarder::Stop()
{
- OutputDebugString("CKsClockForwarder::Stop\n");
+ WCHAR Buffer[200];
+
+ swprintf(Buffer, L"CKsClockForwarder::Stop m_ThreadStarted %u m_PendingStop %u m_hThread %p m_hEvent %p m_Handle %p\n", m_ThreadStarted, m_PendingStop, m_hThread, m_hEvent, m_Handle);
+ OutputDebugStringW(Buffer);
if (m_ThreadStarted)
{
// signal pending stop
if (m_ThreadStarted)
{
// signal pending stop
CKsClockForwarder::NotifyGraphChange()
{
OutputDebugString("CKsClockForwarder::NotifyGraphChange\n");
CKsClockForwarder::NotifyGraphChange()
{
OutputDebugString("CKsClockForwarder::NotifyGraphChange\n");
- DebugBreak();
- return E_NOTIMPL;
}
//-------------------------------------------------------------------
}
//-------------------------------------------------------------------
if (SUCCEEDED(hr))
m_State = State;
if (SUCCEEDED(hr))
m_State = State;
+ WCHAR Buffer[100];
+ swprintf(Buffer, L"CKsClockForwarder::SetClockState m_State %u State %u hr %lx\n", m_State, State, hr);
+ OutputDebugStringW(Buffer);
+