mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Only start audio process if at least one camera is enabled
This commit is contained in:
parent
b89c6c30f7
commit
cc11cf1737
@ -392,6 +392,7 @@ class FrigateApp:
|
|||||||
logger.info(f"Capture process started for {name}: {capture_process.pid}")
|
logger.info(f"Capture process started for {name}: {capture_process.pid}")
|
||||||
|
|
||||||
def start_audio_processors(self) -> None:
|
def start_audio_processors(self) -> None:
|
||||||
|
if len([c for c in self.config.cameras.values() if c.audio.enabled]) > 0:
|
||||||
audio_process = mp.Process(
|
audio_process = mp.Process(
|
||||||
target=listen_to_audio, name=f"audio_capture", args=(self.config,)
|
target=listen_to_audio, name=f"audio_capture", args=(self.config,)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user