Seems wrong to try to complete an encode if it has thrown an exception.
authorCarl Hetherington <cth@carlh.net>
Fri, 12 Apr 2013 19:29:17 +0000 (20:29 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 Apr 2013 19:29:17 +0000 (20:29 +0100)
src/lib/transcoder.cc

index e0e127d33b565da5133dd45069c4e9b49838726a..2a8ce50448c1ed31dc778767d702561e71d63522 100644 (file)
@@ -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 ();
        }