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

Commit c09cec7b authored by Pierre Couillaud's avatar Pierre Couillaud Committed by Eino-Ville Talvala
Browse files

av: native_window_set_buffers_geometry is deprecated.



native_window_set_buffers_geometry is deprecated, but
__set_buffers_geometry is still used for device1 camera
support.

replace deprecated call with its equivalent combination of
native_window_set_buffers_dimensions and
native_window_set_buffers_format.

Change-Id: I4940367dcae6049451508bfdfc11c16907ec1afc
Signed-off-by: default avatarPierre Couillaud <pierre@broadcom.com>
parent 7f44751f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -625,9 +625,14 @@ private:
    static int __set_buffers_geometry(struct preview_stream_ops* w,
                      int width, int height, int format)
    {
        int rc;
        ANativeWindow *a = anw(w);
        return native_window_set_buffers_geometry(a,
                          width, height, format);

        rc = native_window_set_buffers_dimensions(a, width, height);
        if (!rc) {
            rc = native_window_set_buffers_format(a, format);
        }
        return rc;
    }

    static int __set_crop(struct preview_stream_ops *w,