Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efb882cf authored by Gloria Wang's avatar Gloria Wang
Browse files

Release mediaplayer if the current state is not suspending. Fix for bug 2480093.

parent 55535c83
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -484,6 +484,9 @@ public class VideoView extends SurfaceView implements MediaPlayerControl {
            // after we return from this we can't use the surface any more
            mSurfaceHolder = null;
            if (mMediaController != null) mMediaController.hide();
            if (mCurrentState != STATE_SUSPEND) {
                release(true);
            }
        }
    };