Skip to content

Commit

Permalink
Fix for error not being caught when FFMPEG throws
Browse files Browse the repository at this point in the history
  • Loading branch information
jpc0 committed Mar 20, 2023
1 parent 8a4befd commit 7bf0d6a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/modules/ffmpeg/producer/av_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,10 @@ class Decoder
}
} catch (boost::thread_interrupted&) {
// Do nothing...
} catch (ffmpeg::ffmpeg_error_t& ex) {
if (auto errn = boost::get_error_info<ffmpeg_errn_info>(ex)) {
if (*errn == AVERROR_EXIT) {
return;
}
}
CASPAR_LOG_CURRENT_EXCEPTION();
} catch (...) {
CASPAR_LOG_CURRENT_EXCEPTION();
eof = true;
}
eof = true;
});
}

Expand Down

0 comments on commit 7bf0d6a

Please sign in to comment.