Commit 5e726be
committed
Bug 1947814 - Ensure that we continue to issue video frame request callbacks after seeking. r=media-playback-reviewers,alwu
When a video completes, we can present the first frame again, with its
original first frame ID. We tried to fix this by filtering for earlier
frames which should generally work since we redecode after a seek.
But if the seek produces earlier frames as well, then we can
unexpectedly suppress those video frame request callbacks. As such, we
now track how many frames have been presented separately from the frame
ID. If we have never seeked, then these values will always been the
same. Otherwise we will diverge in order to maintain the monotonically
increasing requirement.
Differential Revision: https://phabricator.services.mozilla.com/D2399441 parent 867b55e commit 5e726be
2 files changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
| 747 | + | |
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
834 | 848 | | |
835 | 849 | | |
836 | 850 | | |
837 | 851 | | |
838 | 852 | | |
839 | | - | |
| 853 | + | |
840 | 854 | | |
841 | | - | |
842 | 855 | | |
843 | 856 | | |
844 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
0 commit comments