mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
handle empty string args
This commit is contained in:
parent
41dd4447cc
commit
93b9d586d2
@ -668,13 +668,15 @@ class CameraConfig():
|
|||||||
if len(ffmpeg_output_args) == 0:
|
if len(ffmpeg_output_args) == 0:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return (['ffmpeg'] +
|
cmd = (['ffmpeg'] +
|
||||||
ffmpeg_input.global_args +
|
ffmpeg_input.global_args +
|
||||||
ffmpeg_input.hwaccel_args +
|
ffmpeg_input.hwaccel_args +
|
||||||
ffmpeg_input.input_args +
|
ffmpeg_input.input_args +
|
||||||
['-i', ffmpeg_input.path] +
|
['-i', ffmpeg_input.path] +
|
||||||
ffmpeg_output_args)
|
ffmpeg_output_args)
|
||||||
|
|
||||||
|
return [part for part in cmd if part != '']
|
||||||
|
|
||||||
def _set_zone_colors(self, zones: Dict[str, ZoneConfig]):
|
def _set_zone_colors(self, zones: Dict[str, ZoneConfig]):
|
||||||
# set colors for zones
|
# set colors for zones
|
||||||
all_zone_names = zones.keys()
|
all_zone_names = zones.keys()
|
||||||
|
Loading…
Reference in New Issue
Block a user