aboutsummaryrefslogtreecommitdiff
path: root/video/video_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/video_decoder.h')
-rw-r--r--video/video_decoder.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/video/video_decoder.h b/video/video_decoder.h
index 7ccf49a0af..cc7d1df51b 100644
--- a/video/video_decoder.h
+++ b/video/video_decoder.h
@@ -102,16 +102,14 @@ public:
/**
* Begin playback of the video.
*
- * @note This has no effect is the video is already playing.
+ * @note This has no effect if the video is already playing.
*/
void start();
/**
* Stop playback of the video.
*
- * @note This will close() the video if it is not rewindable.
- * @note If the video is rewindable, the video will be rewound on the
- * next start() call unless rewind() or seek() is called before then.
+ * @note This has no effect if the video is not playing.
*/
void stop();
@@ -180,6 +178,9 @@ public:
/**
* Set the time for this video to end at. At this time in the video,
* all audio will stop and endOfVideo() will return true.
+ *
+ * While the setting is stored even if a video is not playing,
+ * endOfVideo() is only affected when the video is playing.
*/
void setEndTime(const Audio::Timestamp &endTime);
@@ -203,7 +204,7 @@ public:
* Returns the current frame number of the video.
* @return the last frame decoded by the video
*/
- int32 getCurFrame() const;
+ int getCurFrame() const;
/**
* Returns the number of frames in the video.
@@ -432,7 +433,7 @@ protected:
/**
* Set the pause status of the track.
*/
- void pause(bool shouldPause) {}
+ void pause(bool shouldPause);
/**
* Return if the track is paused.
@@ -450,7 +451,7 @@ protected:
/**
* Function called by pause() for subclasses to implement.
*/
- void pauseIntern(bool pause);
+ virtual void pauseIntern(bool shouldPause) {}
private:
bool _paused;
@@ -596,7 +597,7 @@ protected:
virtual Audio::Mixer::SoundType getSoundType() const { return Audio::Mixer::kPlainSoundType; }
protected:
- void pauseIntern(bool pause);
+ void pauseIntern(bool shouldPause);
/**
* Get the AudioStream that is the representation of this AudioTrack
@@ -762,7 +763,7 @@ private:
TrackList _tracks;
// Current playback status
- bool _isPlaying, _needsRewind, _needsUpdate;
+ bool _isPlaying, _needsUpdate;
Audio::Timestamp _lastTimeChange, _endTime;
bool _endTimeSet;