aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2014-08-01 01:47:30 -0400
committerMatthew Hoops2014-08-01 01:47:30 -0400
commitdc155b23f02f6a462bf59a3f51dcdfea3e95c5b8 (patch)
tree4fb94a2592ffa1fd2ad7e23f94a1874c9e775980
parentd8ef40879ca8f9d05384135ad2383f3677cb38cf (diff)
downloadscummvm-rg350-dc155b23f02f6a462bf59a3f51dcdfea3e95c5b8.tar.gz
scummvm-rg350-dc155b23f02f6a462bf59a3f51dcdfea3e95c5b8.tar.bz2
scummvm-rg350-dc155b23f02f6a462bf59a3f51dcdfea3e95c5b8.zip
AUDIO: Better handle endOfStream() vs endOfData() in SubSeekableAudioStream
-rw-r--r--audio/audiostream.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/audiostream.h b/audio/audiostream.h
index e3b8773823..5202a4711c 100644
--- a/audio/audiostream.h
+++ b/audio/audiostream.h
@@ -289,7 +289,8 @@ public:
int getRate() const { return _parent->getRate(); }
- bool endOfData() const { return (_pos >= _length) || _parent->endOfStream(); }
+ bool endOfData() const { return (_pos >= _length) || _parent->endOfData(); }
+ bool endOfStream() const { return (_pos >= _length) || _parent->endOfStream(); }
bool seek(const Timestamp &where);