diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2014-09-09 14:59:06 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@digia.com> | 2014-09-09 18:07:06 +0200 |
commit | 90fd3ac39999389fd898dd43210f8af95adb5493 (patch) | |
tree | 4a20455856baae76c617f332fb430166e18d7cf6 /src/plugins | |
parent | e26483c106cd1408b768f18f5d0edfd83c78f5bf (diff) | |
download | qtmultimedia-90fd3ac39999389fd898dd43210f8af95adb5493.tar.gz |
WMF: fix start time of QAudioProbe's buffers.
Task-number: QTBUG-40954
Change-Id: Icd1d144dcff3a3191432722da44a263ca286dbb6
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/wmf/samplegrabber.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/wmf/samplegrabber.cpp b/src/plugins/wmf/samplegrabber.cpp index e4ead5397..41ff8d797 100644 --- a/src/plugins/wmf/samplegrabber.cpp +++ b/src/plugins/wmf/samplegrabber.cpp @@ -163,6 +163,9 @@ STDMETHODIMP AudioSampleGrabberCallback::OnProcessSample(REFGUID guidMajorMediaT if (llSampleTime == _I64_MAX) { // Set default QAudioBuffer start time llSampleTime = -1; + } else { + // WMF uses 100-nanosecond units, Qt uses microseconds + llSampleTime /= 10; } foreach (MFAudioProbeControl* probe, m_audioProbes) |