From dcdb40f79e4e02101ddd7c017762ec61298f1833 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 23 Aug 2012 23:11:09 -0400 Subject: VIDEO: Adjust start time after calling rewind() in start() This wasn't an actual bug, but it makes more sense this way --- video/video_decoder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp index 14826642d7..559880acee 100644 --- a/video/video_decoder.cpp +++ b/video/video_decoder.cpp @@ -347,14 +347,14 @@ void VideoDecoder::start() { _isPlaying = true; _startTime = g_system->getMillis(); - // Adjust start time if we've seeked to something besides zero time - if (_lastTimeChange.totalNumberOfFrames() != 0) - _startTime -= _lastTimeChange.msecs(); - // If someone previously called stop(), we'll rewind it. if (_needsRewind) rewind(); + // Adjust start time if we've seeked to something besides zero time + if (_lastTimeChange.totalNumberOfFrames() != 0) + _startTime -= _lastTimeChange.msecs(); + startAudio(); } -- cgit v1.2.3