Bring back the warning displayed if video decoder initialization fails

This commit is contained in:
Cameron Gutman committed 2017-06-16 19:50:50 -07:00
1 parent fe7148dbd4
commit f6e40118a9
2 files changed
+14 -1

No files matched your search

@@ -440,12 +440,15 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer {
startSpinnerThreads();
}
// !!! May be called even if setup()/start() fails !!!
public void prepareForStop() {
// Let the decoding code know to ignore codec exceptions now
stopping = true;
// Halt the rendering thread
rendererThread.interrupt();
if (rendererThread != null) {
rendererThread.interrupt();
}
}
@Override