diff options
author | kasper93 <kasper93@gmail.com> | 2013-09-13 16:48:51 +0400 |
---|---|---|
committer | kasper93 <kasper93@gmail.com> | 2013-10-20 17:44:11 +0400 |
commit | a4a2ea678a0c66b0b21dab4ee3d30ad98da701bd (patch) | |
tree | f4733336aeebac17b5b395e91cfc624670cb29c2 /src/filters/renderer/SyncClock | |
parent | b8e82fb73dcfc3aa10a0a166e89021735ef0d9a6 (diff) |
Fix uninitialized class members
Fixes CID #366317, #366318, #366360, #966281, #966282, #966283, #966284,
#966285, #966286, #966287, #966310, #966311, #966313, #966314, #966316,
#966328, #966329, #966343, #966345, #966346, #966347, #966349, #966350,
#966354, #966358, #966359, #966361, #966362, #966363, #966364, #966365,
#966366, #966370, #966371, #966373, #966374, #966375, #966376, #966377,
#966378, #1026047, #1027114, #1041190
Diffstat (limited to 'src/filters/renderer/SyncClock')
-rw-r--r-- | src/filters/renderer/SyncClock/SyncClock.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/filters/renderer/SyncClock/SyncClock.cpp b/src/filters/renderer/SyncClock/SyncClock.cpp index 5b2a6a0d9..ff4406f32 100644 --- a/src/filters/renderer/SyncClock/SyncClock.cpp +++ b/src/filters/renderer/SyncClock/SyncClock.cpp @@ -84,12 +84,13 @@ CSyncClock::CSyncClock(LPUNKNOWN pUnk, HRESULT* phr) : CBaseReferenceClock(NAME("SyncClock"), pUnk, phr)
, m_pCurrentRefClock(0)
, m_pPrevRefClock(0)
+ , m_rtPrivateTime(GetTicks100ns())
+ , m_rtPrevTime(m_rtPrivateTime)
+ , adjustment(1.0)
+ , bias(1.0)
+ , m_llPerfFrequency(0)
{
QueryPerformanceFrequency((LARGE_INTEGER*)&m_llPerfFrequency);
- m_rtPrivateTime = GetTicks100ns();
- m_rtPrevTime = m_rtPrivateTime;
- adjustment = 1.0;
- bias = 1.0;
}
REFERENCE_TIME CSyncClock::GetPrivateTime()
|