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

Commit d0fc955c authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am 6df89fde: Merge "Ignore errors returned from native_window_set_crop." into honeycomb

* commit '6df89fde0db446bb530ab872b373b1faa3ccb06c':
  Ignore errors returned from native_window_set_crop.
parents 86ba757d fccf7275
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2203,8 +2203,9 @@ void OMXCodec::onEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2) {
                        crop.right = right;
                        crop.bottom = bottom;

                        CHECK_EQ(0, native_window_set_crop(
                                    mNativeWindow.get(), &crop));
                        // We'll ignore any errors here, if the surface is
                        // already invalid, we'll know soon enough.
                        native_window_set_crop(mNativeWindow.get(), &crop);
                    }
                }
            }