}
shared_ptr<Player>
-Film::player () const
+Film::make_player () const
{
return shared_ptr<Player> (new Player (shared_from_this (), _playlist));
}
bool have_dcp () const;
- boost::shared_ptr<Player> player () const;
+ boost::shared_ptr<Player> make_player () const;
boost::shared_ptr<Playlist> playlist () const;
OutputAudioFrame dcp_audio_frame_rate () const;
*/
Transcoder::Transcoder (shared_ptr<const Film> f, shared_ptr<Job> j)
: _job (j)
- , _player (f->player ())
+ , _player (f->make_player ())
, _encoder (new Encoder (f, j))
{
_player->Video.connect (bind (video_proxy, _encoder, _1, _2));
return;
}
- _player = f->player ();
+ _player = f->make_player ();
_player->disable_audio ();
_player->Video.connect (boost::bind (&FilmViewer::process_video, this, _1, _3));
_player->Changed.connect (boost::bind (&FilmViewer::player_changed, this, _1));
/* A is 16 frames long at 25 fps */
BOOST_CHECK_EQUAL (B->start(), 16 * TIME_HZ / 25);
- shared_ptr<Player> player = film->player ();
+ shared_ptr<Player> player = film->make_player ();
PlayerWrapper wrap (player);
/* Seek and audio don't get on at the moment */
player->disable_audio ();