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

Commit 52571b90 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera2 Legacy: Clear JPEG ids when reconfiguring.

Otherwise, stale IDs for old streams will be left around, causing
JPEGs to be sent to the wrong consumers.

Bug: 17659125
Change-Id: I98e1a1d389147631bc80eaeb10d57f74a6256f32
parent eecc904f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -328,6 +328,7 @@ public class RequestThreadManager {
        resetJpegSurfaceFormats(mCallbackOutputs);
        mPreviewOutputs.clear();
        mCallbackOutputs.clear();
        mJpegSurfaceIds.clear();
        mPreviewTexture = null;

        int facing = mCharacteristics.get(CameraCharacteristics.LENS_FACING);