am b5a913f9: am f99eba07: am ec2efb9c: am 08b12dfb: Merge "Camera2: Legacy: Lock down surface sizes before creating EGL surfaces" into mnc-dev
* commit 'b5a913f9e264b79f5c714d4a590a44dac2ed2cf2': Camera2: Legacy: Lock down surface sizes before creating EGL surfaces
This commit is contained in:
@@ -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