aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-21 14:50:10 -0400
committerMatthew Hoops2012-07-21 14:50:10 -0400
commitc3cc3620c0d66a2ea7eac9738ead934f3b6381b0 (patch)
tree951613622ca75bf28eabc767875210b2f7b99081
parente74c306a7f3847128eb786c2d56f04d559e5a822 (diff)
downloadscummvm-rg350-c3cc3620c0d66a2ea7eac9738ead934f3b6381b0.tar.gz
scummvm-rg350-c3cc3620c0d66a2ea7eac9738ead934f3b6381b0.tar.bz2
scummvm-rg350-c3cc3620c0d66a2ea7eac9738ead934f3b6381b0.zip
VIDEO: When adding tracks, keep them in sync with the main video status
-rw-r--r--video/video_decoder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp
index 285290da6e..67e53c6b47 100644
--- a/video/video_decoder.cpp
+++ b/video/video_decoder.cpp
@@ -481,6 +481,12 @@ bool AdvancedVideoDecoder::SeekableAudioTrack::seek(const Audio::Timestamp &time
void AdvancedVideoDecoder::addTrack(Track *track) {
_tracks.push_back(track);
+
+ if (isPaused())
+ track->pause(true);
+
+ if (isPlaying())
+ track->start();
}
AdvancedVideoDecoder::VideoTrack *AdvancedVideoDecoder::findNextVideoTrack() {