Add final modifier to ScreenEncoder fields
These fields are only set from the constructor.
This commit is contained in:
parent
1c71bd16be
commit
60bf133ac2
1 changed files with 5 additions and 5 deletions
|
@ -30,11 +30,11 @@ public class ScreenEncoder implements Device.RotationListener {
|
||||||
private final AtomicBoolean rotationChanged = new AtomicBoolean();
|
private final AtomicBoolean rotationChanged = new AtomicBoolean();
|
||||||
private final ByteBuffer headerBuffer = ByteBuffer.allocate(12);
|
private final ByteBuffer headerBuffer = ByteBuffer.allocate(12);
|
||||||
|
|
||||||
private String encoderName;
|
private final String encoderName;
|
||||||
private List<CodecOption> codecOptions;
|
private final List<CodecOption> codecOptions;
|
||||||
private int bitRate;
|
private final int bitRate;
|
||||||
private int maxFps;
|
private final int maxFps;
|
||||||
private boolean sendFrameMeta;
|
private final boolean sendFrameMeta;
|
||||||
private long ptsOrigin;
|
private long ptsOrigin;
|
||||||
|
|
||||||
public ScreenEncoder(boolean sendFrameMeta, int bitRate, int maxFps, List<CodecOption> codecOptions, String encoderName) {
|
public ScreenEncoder(boolean sendFrameMeta, int bitRate, int maxFps, List<CodecOption> codecOptions, String encoderName) {
|
||||||
|
|
Loading…
Reference in a new issue