aboutsummaryrefslogtreecommitdiff
path: root/video/video_decoder.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2012-09-23 21:04:20 -0400
committerMatthew Hoops2012-09-23 21:04:40 -0400
commit64e1483102af4ff291b3ed14f37bff9a7a830060 (patch)
tree1586a71ec2a0e94358842be5a74941369a6a62f4 /video/video_decoder.cpp
parentf437e1df32c1edfb1bf6a9770d4a2e2a38172e64 (diff)
downloadscummvm-rg350-64e1483102af4ff291b3ed14f37bff9a7a830060.tar.gz
scummvm-rg350-64e1483102af4ff291b3ed14f37bff9a7a830060.tar.bz2
scummvm-rg350-64e1483102af4ff291b3ed14f37bff9a7a830060.zip
VIDEO: Make sure track pause status is reset upon stop too
Diffstat (limited to 'video/video_decoder.cpp')
-rw-r--r--video/video_decoder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp
index c1d194a18f..110afa7755 100644
--- a/video/video_decoder.cpp
+++ b/video/video_decoder.cpp
@@ -359,6 +359,10 @@ void VideoDecoder::stop() {
// Also reset the pause state.
_pauseLevel = 0;
+
+ // Reset the pause state of the tracks too
+ for (TrackList::iterator it = _tracks.begin(); it != _tracks.end(); it++)
+ (*it)->pause(false);
}
Audio::Timestamp VideoDecoder::getDuration() const {