When user presses the power key while playing a local video, the surfaceflinger will crash.

The root cause is both buffer and sidebandstream of Media Player's SurfaceView are NULL after pressing power key, and then SurfaceFlinger has a nullpointer exception.

Change-Id: Ifd04da2abce29a64750a65e7f1aa9a1ed6536fdf
Bug: 210383977
Test: manual test.
1 file changed