diff options
author | Matthew Hoops | 2012-07-21 14:50:10 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-07-21 14:50:10 -0400 |
commit | c3cc3620c0d66a2ea7eac9738ead934f3b6381b0 (patch) | |
tree | 951613622ca75bf28eabc767875210b2f7b99081 | |
parent | e74c306a7f3847128eb786c2d56f04d559e5a822 (diff) | |
download | scummvm-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.cpp | 6 |
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() { |