Merge pull request #13256 from pierreeurope/fix/ttml-postprocessing-error-reporting

Fix subtitle post-processing error losing original exception
This commit is contained in:
Tobi 2026-02-19 00:21:17 -08:00 committed by GitHub
commit 01e77e2e26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,9 +29,12 @@ class TtmlConverter extends Postprocessing {
try {
writer.build(sources[0]);
} catch (IOException err) {
Log.e(TAG, "subtitle conversion failed due to I/O error", err);
throw err;
} catch (Exception err) {
Log.e(TAG, "subtitle parse failed", err);
return err instanceof IOException ? 1 : 8;
Log.e(TAG, "subtitle conversion failed", err);
throw new IOException("TTML to SRT conversion failed", err);
}
return OK_RESULT;