Commit 2811ea2
committed
fix(video_player): improve audio track format handling in tests
- Simplified mock format descriptions in VideoPlayerTests to prevent Core Media crashes
- Removed unnecessary mock format description setup that could cause test instability
- Updated format description validation to only accept genuine Core Media objects, removing NSObject fallback
- Fixed potential crash when accessing format descriptions in test environment1 parent 1161332 commit 2811ea2
File tree
2 files changed
+4
-13
lines changed- packages/video_player/video_player_avfoundation/darwin
- RunnerTests
- video_player_avfoundation/Sources/video_player_avfoundation
2 files changed
+4
-13
lines changedLines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1058 | 1058 | | |
1059 | 1059 | | |
1060 | 1060 | | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
1068 | 1064 | | |
1069 | 1065 | | |
1070 | 1066 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
584 | | - | |
585 | 583 | | |
586 | 584 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
| 585 | + | |
591 | 586 | | |
592 | 587 | | |
593 | 588 | | |
| |||
0 commit comments