void
Player::setup_pieces ()
{
- list<shared_ptr<ImageDecoder> > old_image_decoders;
- BOOST_FOREACH (shared_ptr<Piece> i, _pieces) {
- shared_ptr<ImageDecoder> imd = dynamic_pointer_cast<ImageDecoder> (i->decoder);
- if (imd) {
- old_image_decoders.push_back (imd);
- }
- }
-
_pieces.clear ();
BOOST_FOREACH (shared_ptr<Content> i, _playlist->content ()) {
continue;
}
- shared_ptr<Decoder> decoder = decoder_factory (i, old_image_decoders, _film->log(), _fast);
+ shared_ptr<Decoder> decoder = decoder_factory (i, _film->log(), _fast);
FrameRateChange frc (i->active_video_frame_rate(), _film->video_frame_rate());
if (!decoder) {
shared_ptr<PlayerVideo> (
new PlayerVideo (
i->image,
- content_video_to_dcp (piece, i->frame),
+ time,
piece->content->video->crop (),
- piece->content->video->fade (i->frame),
+ piece->content->video->fade (i->frame.index()),
image_size,
_video_container_size,
- i->eyes,
+ i->frame.eyes(),
i->part,
piece->content->video->colour_conversion ()
)