Permalink
Browse files

VIDEO: Make seekToTime() take a const Timestamp reference

  • Loading branch information...
1 parent 9e33017 commit 0aacf4c4c08baf512b98afa63bd3d052bfec0716 @clone2727 clone2727 committed May 13, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 video/qt_decoder.cpp
  2. +1 −1 video/qt_decoder.h
  3. +1 −1 video/video_decoder.h
@@ -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;
View
@@ -112,7 +112,7 @@ class QuickTimeDecoder : public SeekableVideoDecoder, public Audio::QuickTimeAud
// 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:
@@ -253,7 +253,7 @@ class SeekableVideoDecoder : public virtual RewindableVideoDecoder {
/**
* 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).

0 comments on commit 0aacf4c

Please sign in to comment.