summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2014-09-09 14:59:06 +0200
committerYoann Lopes <yoann.lopes@digia.com>2014-09-09 18:07:06 +0200
commit90fd3ac39999389fd898dd43210f8af95adb5493 (patch)
tree4a20455856baae76c617f332fb430166e18d7cf6 /src/plugins
parente26483c106cd1408b768f18f5d0edfd83c78f5bf (diff)
downloadqtmultimedia-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.cpp3
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)