Remove unnecessary synchronization

The `videoSize` field is never written while holding the mutex, and is
only accessed from the same thread.
This commit is contained in:
Romain Vimont 2026-04-14 22:34:54 +02:00
parent 66005e8889
commit fe9450afcc

View file

@ -241,7 +241,7 @@ public class NewDisplayCapture extends SurfaceCapture {
}
@Override
public synchronized Size getSize() {
public Size getSize() {
return videoSize;
}