Try to build windows command-line stuff with -mconsole.
[dcpomatic.git] / src / lib / transcoder.cc
index 715a158db20b5b8ffe19473cececdec01235f364..24f22a9cb4cc35030d1d34ac27a9053b10eff9e5 100644 (file)
@@ -66,6 +66,7 @@ Transcoder::Transcoder (shared_ptr<const Film> f, shared_ptr<Job> 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 ();
 }
+