aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.cs
AgeCommit message (Collapse)Author
2026-07-15Fix race condition in concurrent subtitle conversionPiotr Niełacny
SubtitleEncoder.ConvertSubtitles parsed subtitles with libse's static Subtitle.Parse, which iterates a statically cached list of shared SubtitleFormat instances. Format parsers keep mutable per-parse state on the instance, so concurrent subtitle requests corrupted each other's output (cues mixed across streams and languages, truncated files) or failed with NullReferenceException when format detection broke down and Subtitle.Parse returned null. Parse through the injected ISubtitleParser instead. SubtitleEditParser instantiates a fresh format parser per call, so requests no longer share state. Its Parse method now returns the libse Subtitle directly (the SubtitleTrackInfo flattening was unused since the SubtitleEdit writer rework) so the writers keep full fidelity such as ASS styling.
2025-02-03Backport pull request #13384 from jellyfin/release-10.10.zalltilla
Fix parallel use of not thread-safe SubtitleFormat instance Original-merge: 0b2a59e9631269c7e3261895e2e45d9dc07de848 Merged-by: joshuaboniface <joshua@boniface.me> Backported-by: Bond_009 <bond.009@outlook.com>
2024-09-06Add subtitle parser errors to log if available (#12479)Łukasz
2023-11-14Revert "Use System.Net.IPNetwork"Bond_009
This reverts commit 117d05d288da1d412159a29c0cb8d5c8259e48ae.
2022-09-28Remove redundant using directivesHannes Braun
2022-08-01Backport pull request #8087 from jellyfin/release-10.8.zJoshua Boniface
feat: make subtitleeditparser generic Authored-by: Claus Vium <cvium@users.noreply.github.com> Merged-by: Bond-009 <bond.009@outlook.com> Original-merge: 7323ccfc232d31797af3ceb8bad93cae1ea0898d
2021-09-25Address commentsBond_009
2021-09-24Target net6.0Bond_009
2021-09-13Fix namespaceCody Robibero
2021-06-19Move non-jellyfin extensions to separate projectBond_009
2021-05-20Enable nullable reference types for MediaBrowser.MediaEncoding.SubtitlesBond_009
2021-02-09Log subtitle errorsBond_009
2021-02-09Use SubtitleEdit to parse subtitlesBond_009