Created
December 12, 2012 14:49
-
-
Save bgK/4268317 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp | |
index 967bbb5..b87134d 100644 | |
--- a/video/video_decoder.cpp | |
+++ b/video/video_decoder.cpp | |
@@ -195,12 +195,13 @@ bool VideoDecoder::setReverse(bool reverse) { | |
// Attempt to make sure all the tracks are in the requested direction | |
for (TrackList::iterator it = _tracks.begin(); it != _tracks.end(); it++) | |
- if ((*it)->getTrackType() == Track::kTrackTypeVideo && ((VideoTrack *)*it)->isReversed() != reverse) | |
+ if ((*it)->getTrackType() == Track::kTrackTypeVideo && ((VideoTrack *)*it)->isReversed() != reverse) { | |
if (!((VideoTrack *)*it)->setReverse(reverse)) | |
return false; | |
+ _needsUpdate = true; // force an update | |
+ } | |
findNextVideoTrack(); | |
- _needsUpdate = true; // force an update | |
return true; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment