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 authored and GitHub committed 2026-02-19 00:21:17 -08:00
commit 01e77e2e26
1 file changed
+5 -2
@@ -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;