Commit aea0637
Fix media period mismatch during recoverable renderer error processing
If a recoverable renderer error occurred just before playing period transition(aka media item transition) then the player may enter a continuous loop of retrying to play the previous media item.
This was most easily reproduced in an audio offload scenario where init in offload mode always fails. In initializing the following media, the process would fail with recoverable error to try in non-offload mode. The player would try to recover with playing the previous media item. Most times it would skip to the next track but not always.
Issue: #2229
PiperOrigin-RevId: 7412132931 parent f533f55 commit aea0637
File tree
2 files changed
+100
-22
lines changed- libraries/exoplayer/src
- main/java/androidx/media3/exoplayer
- test/java/androidx/media3/exoplayer
2 files changed
+100
-22
lines changedLines changed: 21 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | 772 | | |
791 | 773 | | |
792 | 774 | | |
793 | 775 | | |
794 | 776 | | |
795 | | - | |
| 777 | + | |
796 | 778 | | |
797 | 779 | | |
798 | 780 | | |
799 | | - | |
| 781 | + | |
| 782 | + | |
800 | 783 | | |
801 | 784 | | |
802 | 785 | | |
| |||
812 | 795 | | |
813 | 796 | | |
814 | 797 | | |
815 | | - | |
816 | | - | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
817 | 816 | | |
818 | 817 | | |
819 | 818 | | |
| |||
Lines changed: 79 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
16748 | 16749 | | |
16749 | 16750 | | |
16750 | 16751 | | |
| 16752 | + | |
| 16753 | + | |
| 16754 | + | |
| 16755 | + | |
| 16756 | + | |
| 16757 | + | |
| 16758 | + | |
| 16759 | + | |
| 16760 | + | |
| 16761 | + | |
| 16762 | + | |
| 16763 | + | |
| 16764 | + | |
| 16765 | + | |
| 16766 | + | |
| 16767 | + | |
| 16768 | + | |
| 16769 | + | |
| 16770 | + | |
| 16771 | + | |
| 16772 | + | |
| 16773 | + | |
| 16774 | + | |
| 16775 | + | |
| 16776 | + | |
| 16777 | + | |
| 16778 | + | |
| 16779 | + | |
| 16780 | + | |
| 16781 | + | |
| 16782 | + | |
| 16783 | + | |
| 16784 | + | |
| 16785 | + | |
| 16786 | + | |
| 16787 | + | |
| 16788 | + | |
| 16789 | + | |
| 16790 | + | |
| 16791 | + | |
| 16792 | + | |
| 16793 | + | |
| 16794 | + | |
| 16795 | + | |
| 16796 | + | |
| 16797 | + | |
| 16798 | + | |
| 16799 | + | |
| 16800 | + | |
| 16801 | + | |
| 16802 | + | |
| 16803 | + | |
| 16804 | + | |
| 16805 | + | |
| 16806 | + | |
| 16807 | + | |
| 16808 | + | |
| 16809 | + | |
| 16810 | + | |
| 16811 | + | |
| 16812 | + | |
| 16813 | + | |
| 16814 | + | |
| 16815 | + | |
| 16816 | + | |
| 16817 | + | |
| 16818 | + | |
| 16819 | + | |
| 16820 | + | |
| 16821 | + | |
| 16822 | + | |
| 16823 | + | |
| 16824 | + | |
| 16825 | + | |
| 16826 | + | |
| 16827 | + | |
| 16828 | + | |
| 16829 | + | |
16751 | 16830 | | |
16752 | 16831 | | |
16753 | 16832 | | |
| |||
0 commit comments