summaryrefslogtreecommitdiff
path: root/src/lib/video_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-14 12:21:40 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-14 12:21:40 +0100
commit3b74655a04bdac7d8fa0258225a9d3bedd170170 (patch)
tree3fc9be98f951ec204c62ce89620f1f70da4e8d74 /src/lib/video_decoder.cc
parent3ae21bc7e7e0278a1ee15d365971eeb3dcabcbf6 (diff)
Fix subtle bug with 3D and add a explicit to stop it happening again.
Diffstat (limited to 'src/lib/video_decoder.cc')
-rw-r--r--src/lib/video_decoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc
index fc3bcac39..edc746010 100644
--- a/src/lib/video_decoder.cc
+++ b/src/lib/video_decoder.cc
@@ -252,7 +252,7 @@ VideoDecoder::give (shared_ptr<const ImageProxy> image, Frame frame)
/* We receive the same frame index twice for 3D-alternate; hence we know which
frame this one is.
*/
- bool const same = (!_decoded.empty() && frame == _decoded.back().frame);
+ bool const same = (!_decoded.empty() && frame == _decoded.back().frame.index());
to_push.push_back (ContentVideo (image, VideoFrame (frame, same ? EYES_RIGHT : EYES_LEFT), PART_WHOLE));
break;
}