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

Commit 903896b7 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

stagefright: do not reconnect surface for tunneled playback

Bug: 30608808
Change-Id: I9a6bb1660b6d0c030fda36de52dfad6fa398f2e2
(cherry picked from commit 2b85160ca0b468a11ee60e80d78747bb433c365c)
(cherry picked from commit 348cc8d612b507e6e09a7fbe3d3066f34f998017)
parent 24fd2f7d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1106,7 +1106,8 @@ status_t ACodec::configureOutputBuffersFromNativeWindow(

    if (err == OK) {
        err = setupNativeWindowSizeFormatAndUsage(
                mNativeWindow.get(), &mNativeWindowUsageBits, preregister /* reconnect */);
                mNativeWindow.get(), &mNativeWindowUsageBits,
                preregister && !mTunneled /* reconnect */);
    }
    if (err != OK) {
        mNativeWindowUsageBits = 0;