aboutsummaryrefslogtreecommitdiff
path: root/video/video_decoder.h
diff options
context:
space:
mode:
authorMatthew Hoops2011-03-21 18:27:10 -0400
committerMatthew Hoops2011-03-21 18:27:10 -0400
commit94c27e4657279aaae8c98aee58477265625b7a27 (patch)
tree5b4eb02b5afe8380813131e544156cf79db1db4c /video/video_decoder.h
parent40c496d7301d1c0c6e80bfb0b5851a851237e167 (diff)
downloadscummvm-rg350-94c27e4657279aaae8c98aee58477265625b7a27.tar.gz
scummvm-rg350-94c27e4657279aaae8c98aee58477265625b7a27.tar.bz2
scummvm-rg350-94c27e4657279aaae8c98aee58477265625b7a27.zip
VIDEO: Add a getDuration() function to SeekableVideoDecoder
This function returns the total duration of the video
Diffstat (limited to 'video/video_decoder.h')
-rw-r--r--video/video_decoder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/video_decoder.h b/video/video_decoder.h
index 97cd133bc0..348b5dc0a3 100644
--- a/video/video_decoder.h
+++ b/video/video_decoder.h
@@ -266,6 +266,11 @@ public:
* Implementation of RewindableVideoDecoder::rewind().
*/
virtual void rewind() { seekToTime(0); }
+
+ /**
+ * Get the total duration of the video (in ms).
+ */
+ virtual uint32 getDuration() const = 0;
};
} // End of namespace Video