Fix logging and deadlock on stream termination

This commit is contained in:
Cameron Gutman
2017-05-15 01:06:35 -07:00
parent 8e247ad9a6
commit 36b248be4b
2 changed files with 2 additions and 2 deletions

View File

@@ -327,7 +327,7 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer {
startTime = MediaCodecHelper.getMonotonicMillis();
while (!rendererThread.isInterrupted() && index < 0) {
while (rendererThread.isAlive() && index < 0) {
index = videoDecoder.dequeueInputBuffer(500);
}