diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-19 00:15:24 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-19 00:15:24 +0000 |
| commit | 5282bd42dbe7f9c114abc6f648cb65ef52c35cf4 (patch) | |
| tree | 0ee09ef1373fbcc60f069119ec307063111a3da6 /src/lib/video_decoder.cc | |
| parent | 2a942eec02ac3762cfb79126e1b8ee06161a1e05 (diff) | |
VideoDecoder::_same can just be a local.
Diffstat (limited to 'src/lib/video_decoder.cc')
| -rw-r--r-- | src/lib/video_decoder.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index 8e6f11709..cac5f2795 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -41,7 +41,6 @@ VideoDecoder::VideoDecoder (shared_ptr<const VideoContent> c) #else : _video_content (c) #endif - , _same (false) , _last_seek_accurate (true) { _black_image.reset (new Image (PIX_FMT_RGB24, _video_content->video_size(), true)); @@ -237,7 +236,7 @@ VideoDecoder::video (shared_ptr<const ImageProxy> image, VideoFrame frame) /* We may receive the same frame index twice for 3D, and we need to know when that happens. */ - _same = (!_decoded_video.empty() && frame == _decoded_video.back().frame); + bool const same = (!_decoded_video.empty() && frame == _decoded_video.back().frame); /* Work out what we are going to push into _decoded_video next */ list<ContentVideo> to_push; @@ -246,7 +245,7 @@ VideoDecoder::video (shared_ptr<const ImageProxy> image, VideoFrame frame) to_push.push_back (ContentVideo (image, EYES_BOTH, PART_WHOLE, frame)); break; case VIDEO_FRAME_TYPE_3D_ALTERNATE: - to_push.push_back (ContentVideo (image, _same ? EYES_RIGHT : EYES_LEFT, PART_WHOLE, frame)); + to_push.push_back (ContentVideo (image, same ? EYES_RIGHT : EYES_LEFT, PART_WHOLE, frame)); break; case VIDEO_FRAME_TYPE_3D_LEFT_RIGHT: to_push.push_back (ContentVideo (image, EYES_LEFT, PART_LEFT_HALF, frame)); |
