aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-22 00:39:10 -0400
committerMatthew Hoops2012-07-22 00:39:10 -0400
commit4c9c22b374569e9f93b30137b57eaa2912beffc4 (patch)
tree660d724f52ec0d95e9792d9917d47eb7148cb905
parent067e02e90b7fbe3406cbc7b5b08d63ae281b360c (diff)
downloadscummvm-rg350-4c9c22b374569e9f93b30137b57eaa2912beffc4.tar.gz
scummvm-rg350-4c9c22b374569e9f93b30137b57eaa2912beffc4.tar.bz2
scummvm-rg350-4c9c22b374569e9f93b30137b57eaa2912beffc4.zip
VIDEO: Make seek/rewind functions in AdvancedVideoDecoder virtual
This is to allow for seeking in videos where not everything is indexed
-rw-r--r--video/video_decoder.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/video/video_decoder.h b/video/video_decoder.h
index 3e991ade66..3d8b09f26e 100644
--- a/video/video_decoder.h
+++ b/video/video_decoder.h
@@ -306,33 +306,37 @@ public:
// New API
/**
- * Returns if a video is rewindable or not.
+ * Returns if a video is rewindable or not. The default implementation
+ * polls each track for rewindability.
*/
- bool isRewindable() const;
+ virtual bool isRewindable() const;
/**
* Rewind a video to its beginning.
*
- * If the video is playing, it will continue to play.
+ * If the video is playing, it will continue to play. The default
+ * implementation will rewind each track.
*
* @return true on success, false otherwise
*/
- bool rewind();
+ virtual bool rewind();
/**
- * Returns if a video is seekable or not.
+ * Returns if a video is seekable or not. The default implementation
+ * polls each track for seekability.
*/
- bool isSeekable() const;
+ virtual bool isSeekable() const;
/**
* Seek to a given time in the video.
*
- * If the video is playing, it will continue to play.
+ * If the video is playing, it will continue to play. The default
+ * implementation will seek each track.
*
* @param time The time to seek to
* @return true on success, false otherwise
*/
- bool seek(const Audio::Timestamp &time);
+ virtual bool seek(const Audio::Timestamp &time);
/**
* Begin playback of the video.