[Scummvm-cvs-logs] scummvm master -> 0aacf4c4c08baf512b98afa63bd3d052bfec0716

clone2727 clone2727 at gmail.com
Sun May 13 04:07:35 CEST 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
0aacf4c4c0 VIDEO: Make seekToTime() take a const Timestamp reference


Commit: 0aacf4c4c08baf512b98afa63bd3d052bfec0716
    https://github.com/scummvm/scummvm/commit/0aacf4c4c08baf512b98afa63bd3d052bfec0716
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2012-05-12T19:05:32-07:00

Commit Message:
VIDEO: Make seekToTime() take a const Timestamp reference

Changed paths:
    video/qt_decoder.cpp
    video/qt_decoder.h
    video/video_decoder.h



diff --git a/video/qt_decoder.cpp b/video/qt_decoder.cpp
index 5c841b3..585f592 100644
--- a/video/qt_decoder.cpp
+++ b/video/qt_decoder.cpp
@@ -406,7 +406,7 @@ void QuickTimeDecoder::freeAllTrackHandlers() {
 	_handlers.clear();
 }
 
-void QuickTimeDecoder::seekToTime(Audio::Timestamp time) {
+void QuickTimeDecoder::seekToTime(const Audio::Timestamp &time) {
 	stopAudio();
 	_audioStartOffset = time;
 
diff --git a/video/qt_decoder.h b/video/qt_decoder.h
index 7f2d32e..1f614df 100644
--- a/video/qt_decoder.h
+++ b/video/qt_decoder.h
@@ -112,7 +112,7 @@ public:
 
 	// SeekableVideoDecoder API
 	void seekToFrame(uint32 frame);
-	void seekToTime(Audio::Timestamp time);
+	void seekToTime(const Audio::Timestamp &time);
 	uint32 getDuration() const { return _duration * 1000 / _timeScale; }
 
 protected:
diff --git a/video/video_decoder.h b/video/video_decoder.h
index 7313430..2b99a2b 100644
--- a/video/video_decoder.h
+++ b/video/video_decoder.h
@@ -253,7 +253,7 @@ public:
 	/**
 	 * Seek to the specified time.
 	 */
-	virtual void seekToTime(Audio::Timestamp time) = 0;
+	virtual void seekToTime(const Audio::Timestamp &time) = 0;
 
 	/**
 	 * Seek to the specified time (in ms).






More information about the Scummvm-git-logs mailing list