From d2f5b91a9a2da6b6d8a31b0bd503dc79d8397f00 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 11 May 2011 14:48:13 -0400 Subject: AUDIO: Fix usage of Timestamp::convertToFramerate --- audio/decoders/quicktime.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'audio') diff --git a/audio/decoders/quicktime.cpp b/audio/decoders/quicktime.cpp index f82dc05b7c..e80c2b592c 100644 --- a/audio/decoders/quicktime.cpp +++ b/audio/decoders/quicktime.cpp @@ -304,8 +304,7 @@ void QuickTimeAudioDecoder::setAudioStreamPos(const Timestamp &where) { _audStream = Audio::makeQueuingAudioStream(entry->sampleRate, entry->channels == 2); // First, we need to track down what audio sample we need - Audio::Timestamp curAudioTime = where; - curAudioTime.convertToFramerate(_streams[_audioStreamIndex]->time_scale); + Audio::Timestamp curAudioTime = where.convertToFramerate(_streams[_audioStreamIndex]->time_scale); uint32 sample = curAudioTime.totalNumberOfFrames() / entry->channels; uint32 seekSample = sample; -- cgit v1.2.3