summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-12 20:29:17 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-12 20:29:17 +0100
commit9303bb36391c2ce3c471dafffefbcbbaf3995be0 (patch)
treec1a317ed96e4e26a764fe44d0347fb75d7a7c146 /src/lib
parent4ff62d6f1a2faeb5985fa5bddb9b65e6e549e825 (diff)
Seems wrong to try to complete an encode if it has thrown an exception.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/transcoder.cc16
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 ();
}