Merge "Camera2: Legacy: Lock down surface sizes before creating EGL surfaces" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
08b12dfba6
@@ -338,6 +338,8 @@ public class LegacyCameraDevice implements AutoCloseable {
|
||||
} else {
|
||||
sizedSurfaces.add(new Pair<>(output, s));
|
||||
}
|
||||
// Lock down the size before configuration
|
||||
setSurfaceDimens(output, s.getWidth(), s.getHeight());
|
||||
} catch (BufferQueueAbandonedException e) {
|
||||
Log.e(TAG, "Surface bufferqueue is abandoned, cannot configure as output: ", e);
|
||||
return BAD_VALUE;
|
||||
|
||||
Reference in New Issue
Block a user