Skip to content

Commit

Permalink
Fix for crash on seek
Browse files Browse the repository at this point in the history
Partial fix for #1451 and #1460
  • Loading branch information
jpc0 committed Mar 19, 2023
1 parent be5f396 commit 68b680c
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 68b680c

Please sign in to comment.