if (have_threed) {
- _shuffler.reset(new Shuffler());
+ _shuffler = Shuffler();
_shuffler->Video.connect(bind(&Player::video, this, _1, _2));
}
if (decoder->video) {
if (have_threed) {
/* We need a Shuffler to cope with 3D L/R video data arriving out of sequence */
- decoder->video->Data.connect (bind(&Shuffler::video, _shuffler.get(), weak_ptr<Piece>(piece), _1));
+ decoder->video->Data.connect (bind(&Shuffler::video, &_shuffler.get(), weak_ptr<Piece>(piece), _1));
} else {
decoder->video->Data.connect (bind(&Player::video, this, weak_ptr<Piece>(piece), _1));
}
LastVideoMap _last_video;
AudioMerger _audio_merger;
- std::unique_ptr<Shuffler> _shuffler;
+ boost::optional<Shuffler> _shuffler;
std::list<std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime>> _delay;
class StreamState