X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftranscoder.cc;h=24f22a9cb4cc35030d1d34ac27a9053b10eff9e5;hb=66c0aeea73cf00ba71d650eaf8aa7dc614bc6f3f;hp=715a158db20b5b8ffe19473cececdec01235f364;hpb=5f64a83b76dd015cc03d106061bf890d3d80d788;p=dcpomatic.git diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index 715a158db..24f22a9cb 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -66,6 +66,7 @@ Transcoder::Transcoder (shared_ptr f, shared_ptr j) : _job (j) , _player (f->make_player ()) , _encoder (new Encoder (f, j)) + , _finishing (false) { _player->Video.connect (bind (video_proxy, _encoder, _1, _2, _3, _4)); _player->Audio.connect (bind (audio_proxy, _encoder, _1)); @@ -76,6 +77,8 @@ Transcoder::go () { _encoder->process_begin (); while (!_player->pass ()) {} + + _finishing = true; _encoder->process_end (); } @@ -90,3 +93,4 @@ Transcoder::video_frames_out () const { return _encoder->video_frames_out (); } +