13
0

Safeguard against libaudiographer exceptions

This commit is contained in:
Robin Gareus 2020-04-09 00:01:00 +02:00
parent b8ce25fdab
commit a6afb31245
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -251,7 +251,13 @@ void
Session::process_export_fw (pframes_t nframes)
{
if (!_export_rolling) {
try {
ProcessExport (0);
} catch (std::exception & e) {
/* pre-roll export must not throw */
assert (0);
export_status->abort (true);
}
return;
}
@ -306,7 +312,13 @@ Session::process_export_fw (pframes_t nframes)
fail_roll (ns);
}
try {
ProcessExport (ns);
} catch (std::exception & e) {
/* pre-roll export must not throw */
assert (0);
export_status->abort (true);
}
_remaining_latency_preroll -= ns;
remain -= ns;