Doorbird online/offline bug fix (#12814)

Signed-off-by: Matthew Skinner <matt@pcmus.com>
This commit is contained in:
Matthew Skinner 2022-05-26 23:35:59 +10:00 committed by GitHub
parent 76001902a3
commit 867628a701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1354,7 +1354,8 @@ public class IpCameraHandler extends BaseThingHandler {
void pollingCameraConnection() { void pollingCameraConnection() {
keepMjpegRunning(); keepMjpegRunning();
if (thing.getThingTypeUID().getId().equals(GENERIC_THING)) { if (thing.getThingTypeUID().getId().equals(GENERIC_THING)
|| thing.getThingTypeUID().getId().equals(DOORBIRD_THING)) {
if (rtspUri.isEmpty()) { if (rtspUri.isEmpty()) {
logger.warn("Binding has not been supplied with a FFmpeg Input URL, so some features will not work."); logger.warn("Binding has not been supplied with a FFmpeg Input URL, so some features will not work.");
} }

View File

@ -36,7 +36,7 @@ public class StreamOutput {
private final String boundary; private final String boundary;
private String contentType; private String contentType;
private final ServletOutputStream output; private final ServletOutputStream output;
private BlockingQueue<byte[]> fifo = new ArrayBlockingQueue<byte[]>(30); private BlockingQueue<byte[]> fifo = new ArrayBlockingQueue<byte[]>(50);
private boolean connected = false; private boolean connected = false;
public boolean isSnapshotBased = false; public boolean isSnapshotBased = false;