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

Commit 5129b683 authored by Jamie Gennis's avatar Jamie Gennis
Browse files

MediaPlayer: add a disconnect from ANativeWindow

This change makes MediaPlayer::disconnect disconnect from the
ANativeWindow once the player has been disconnected.

Change-Id: I6744559030d1edc520cf77402d1f5ce841742340
parent f2cc48fe
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -84,6 +84,8 @@ void MediaPlayer::disconnect()
    if (p != 0) {
        p->disconnect();
    }

    disconnectNativeWindow();
}

// always call with lock held