Butler::prepare (weak_ptr<PlayerVideo> weak_video)
try
{
- shared_ptr<PlayerVideo> video = weak_video.lock ();
+ auto video = weak_video.lock ();
/* If the weak_ptr cannot be locked the video obviously no longer requires any work */
if (video) {
LOG_TIMING("start-prepare in %1", thread_id());
optional<DCPTime>
Butler::get_audio (float* out, Frame frames)
{
- optional<DCPTime> t = _audio.get (out, _audio_channels, frames);
+ auto t = _audio.get (out, _audio_channels, frames);
_summon.notify_all ();
return t;
}
if (!v.first) {
throw DecodeError(String::compose("Error during decoding: %1", e.summary()));
}
- shared_ptr<FFmpegFileEncoder> fe = encoder->get (v.first->eyes());
+ auto fe = encoder->get (v.first->eyes());
if (fe) {
fe->video(v.first, v.second);
}
_last_time = i;
}
- shared_ptr<Job> job = _job.lock ();
+ auto job = _job.lock ();
if (job) {
job->set_progress (float(i.get()) / _film->length().get());
}