Commit Graph

28 Commits

Author SHA1 Message Date
Arkadiusz Fal
4b577a296b Fix array index out of bounds crash in audio track handling
This commit addresses crashes caused by race conditions when accessing audio track arrays:

- MPVBackend.swift: Use safe index clamping to prevent array out of bounds crashes when selecting audio tracks
- PlayerModel.swift: Add selectedAudioTrack computed property for thread-safe audio track access
- ControlsOverlay.swift: Use safe accessor with "Original" fallback label
- PlaybackSettings.swift: Use safe accessor with "Original" fallback label

This fix resolves approximately 37% of crashes (23 out of 62 crash logs) that were caused by index out of range errors in MPVBackend.playStream at line 345.
2025-11-19 18:01:02 +01:00
ned
2461a33feb feat: default lang and mpv audio track switching 2025-06-01 22:19:03 +02:00
Toni Förster
3339e8cb1f improved subtitle handling
- fix subtitle disabling not working
- make subtitle adding/removing async
- make subtitle menu non blocking

Signed-off-by: Toni Förster <toni.foerster@gmail.com>
2024-09-14 11:33:12 +02:00
Arkadiusz Fal
934bd65752 Fix swiftformat offenses 2024-05-23 11:44:58 +02:00
Toni Förster
c9125644ed improvements to captions on tvOS 2024-05-20 14:20:08 +02:00
Toni Förster
f3637e2426 fix handling and displaying captions
fixes #490

It also fixes the caption picker being empty when a caption was selected in the previous watched video.
2024-04-21 01:04:31 +02:00
Arkadiusz Fal
0d333b5583 Replace environment objects with observed objects 2022-12-05 10:13:19 +01:00
Arkadiusz Fal
3b01fe34c3 Minor fixes 2022-12-04 13:32:28 +01:00
Arkadiusz Fal
01d8e28d7c Add more playback rates for MPV 2022-12-04 13:32:23 +01:00
Arkadiusz Fal
4082936475 Fix localization 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
7573b0321c More localization fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
6ec59cf442 Add tvOS option to disable captions 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
eebca5ca59 Fix tvOS controls overlay buttons 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
79512d4cbf Extract playback stats view 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
7cbb80847a Minor quality profiles UI improvements (fix #272) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ae9b23b9e7 Bring AVPlayer back to tvOS 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c5738ee14a tvOS buttons hint 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
356f8c7af1 Fix settings overlay layout 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ac9abaec5a Quality profiles 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0797030a97 Minor controls overlay changes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
8318b4c5fb Improve translucency effect 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
e6baaa519a Live streams fix (fix #174, #175) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0716602e3f Minor fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
f63a0f27fd Fix offenses 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
e56ab3804e CC support with Invidious and MPV 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
42f0ff80f8 Fix controls overlay 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c940fb3198 Minor UI changes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
321c265a11 Player controls UI changes
WIP on controls

Chapters

working

Add previews variable

Add lists ids

WIP
2022-10-27 18:03:57 +02:00