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:
andrewlewis 2017-07-03 07:14:56 -07:00 committed by Oliver Woodman
parent 960315c4d5
commit d733bb4101

View file

@ -268,7 +268,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
@Override
public boolean isReady() {
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.
joiningDeadlineMs = C.TIME_UNSET;
return true;