mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 02:05:21 +03:00
Fix conditionals
This commit is contained in:
parent
e98120d2ee
commit
9226f3fe91
@ -80,11 +80,11 @@ class FFMpegConverter:
|
|||||||
|
|
||||||
if os.path.exists(BIRDSEYE_PIPE):
|
if os.path.exists(BIRDSEYE_PIPE):
|
||||||
os.remove(BIRDSEYE_PIPE)
|
os.remove(BIRDSEYE_PIPE)
|
||||||
os.mkfifo(BIRDSEYE_PIPE, mode=0o777)
|
|
||||||
stdin = os.open(BIRDSEYE_PIPE, os.O_RDONLY | os.O_NONBLOCK)
|
|
||||||
self.bd_pipe = os.open(BIRDSEYE_PIPE, os.O_WRONLY)
|
|
||||||
os.close(stdin)
|
|
||||||
|
|
||||||
|
os.mkfifo(BIRDSEYE_PIPE, mode=0o777)
|
||||||
|
stdin = os.open(BIRDSEYE_PIPE, os.O_RDONLY | os.O_NONBLOCK)
|
||||||
|
self.bd_pipe = os.open(BIRDSEYE_PIPE, os.O_WRONLY)
|
||||||
|
os.close(stdin)
|
||||||
self.reading_birdseye = False
|
self.reading_birdseye = False
|
||||||
|
|
||||||
def write(self, b) -> None:
|
def write(self, b) -> None:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user