Skip to content

Commit

Permalink
Fix for crash on seek
Browse files Browse the repository at this point in the history
Partial fix for CasparCG#1451 and CasparCG#1460
  • Loading branch information
jpc0 committed Mar 21, 2023
1 parent cf07ef6 commit 5835984
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/modules/ffmpeg/producer/av_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ 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();
}
});
}
Expand Down

0 comments on commit 5835984

Please sign in to comment.