Fix some exceptions that escaped on decoder shutdown and surface loss

This commit is contained in:
Cameron Gutman
2017-06-07 20:01:09 -07:00
parent e199fcd2d9
commit fe237d1da3
2 changed files with 50 additions and 6 deletions

View File

@@ -992,6 +992,9 @@ public class Game extends Activity implements SurfaceHolder.Callback,
@Override
public void surfaceDestroyed(SurfaceHolder holder) {
// Let the decoder know immediately that the surface is gone
decoderRenderer.prepareForStop();
if (connected) {
stopConnection();
}