mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix video tunneling state transition to ready
Issue: #2985 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=160827532
This commit is contained in:
parent
960315c4d5
commit
d733bb4101
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||||
@Override
|
@Override
|
||||||
public boolean isReady() {
|
public boolean isReady() {
|
||||||
if (super.isReady() && (renderedFirstFrame || (dummySurface != null && surface == dummySurface)
|
if (super.isReady() && (renderedFirstFrame || (dummySurface != null && surface == dummySurface)
|
||||||
|| getCodec() == null)) {
|
|| getCodec() == null || tunneling)) {
|
||||||
// Ready. If we were joining then we've now joined, so clear the joining deadline.
|
// Ready. If we were joining then we've now joined, so clear the joining deadline.
|
||||||
joiningDeadlineMs = C.TIME_UNSET;
|
joiningDeadlineMs = C.TIME_UNSET;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue