diff options
author | Matthew Hoops | 2011-03-21 18:27:10 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-03-21 18:27:10 -0400 |
commit | 94c27e4657279aaae8c98aee58477265625b7a27 (patch) | |
tree | 5b4eb02b5afe8380813131e544156cf79db1db4c /video/video_decoder.h | |
parent | 40c496d7301d1c0c6e80bfb0b5851a851237e167 (diff) | |
download | scummvm-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.h | 5 |
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 |