Commit 60794d8
committed
Fix so video renderer correctly reports ready in tunneling mode.
In tunneled playback mode the video renderer is potentially 'ready' with output at anytime there are buffers queued to the codec. This fix add the more specific boolean `hasOuputReady()` and uses this in the `isReady()` check.
This changes fixes issue #6366
The call to dequeueOutputBuffer() simply returns TRY_AGAIN always in tunneled mode (this comment is correct: #1688 (comment) so the super.hasOutputReady() is always false in tunneling mode, even though the codec may have output ready.1 parent 151b75d commit 60794d8
File tree
2 files changed
+27
-1
lines changed- library/core/src/main/java/com/google/android/exoplayer2
- mediacodec
- video
2 files changed
+27
-1
lines changedLines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
1144 | 1145 | | |
1145 | 1146 | | |
1146 | 1147 | | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
1147 | 1161 | | |
1148 | 1162 | | |
1149 | 1163 | | |
| |||
1528 | 1542 | | |
1529 | 1543 | | |
1530 | 1544 | | |
1531 | | - | |
| 1545 | + | |
1532 | 1546 | | |
1533 | 1547 | | |
1534 | 1548 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
403 | 415 | | |
404 | 416 | | |
405 | 417 | | |
| |||
0 commit comments