diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-12 20:29:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-12 20:29:17 +0100 |
| commit | 9303bb36391c2ce3c471dafffefbcbbaf3995be0 (patch) | |
| tree | c1a317ed96e4e26a764fe44d0347fb75d7a7c146 /src/lib/transcoder.cc | |
| parent | 4ff62d6f1a2faeb5985fa5bddb9b65e6e549e825 (diff) | |
Seems wrong to try to complete an encode if it has thrown an exception.
Diffstat (limited to 'src/lib/transcoder.cc')
| -rw-r--r-- | src/lib/transcoder.cc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index e0e127d33..2a8ce5044 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -79,19 +79,13 @@ void Transcoder::go () { _encoder->process_begin (); - try { - while (1) { - if (_player->pass ()) { - break; - } - _player->set_progress (_job); + while (1) { + if (_player->pass ()) { + break; } - - } catch (...) { - _encoder->process_end (); - throw; + _player->set_progress (_job); } - + if (_delay_line) { _delay_line->process_end (); } |
