From 29e8d39c743ac656ca40ec6f00252cbd3abeeee6 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 4 Sep 2021 10:43:25 -0400 Subject: [PATCH] defaults need to be quoted because they are evalled --- scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm b/scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm index 629a8960b..2e47fa610 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Monitor.pm @@ -136,8 +136,8 @@ $serial = $primary_key = 'Id'; %defaults = ( ServerId => 0, StorageId => 0, - Type => 'Ffmpeg', - Function => 'Mocord', + Type => q`'Ffmpeg'`, + Function => q`'Mocord'`, Enabled => 1, LinkedMonitors => undef, Device => '', @@ -166,15 +166,15 @@ $serial = $primary_key = 'Id'; VideoWriter => 0, OutputCodec => undef, OutputContainer => undef, - EncoderParameters => "# Lines beginning with # are a comment \n# For changing quality, use the crf option\n# 1 is best, 51 is worst quality\n#crf=23\n", + EncoderParameters => '', RecordAudio=>0, RTSPDescribe=>0, Brightness => -1, Contrast => -1, Hue => -1, Colour => -1, - EventPrefix => 'Event-', - LabelFormat => '%N - %d/%m/%y %H:%M:%S', + EventPrefix => q`'Event-'`, + LabelFormat => '', LabelX => 0, LabelY => 0, LabelSize => 1, @@ -208,13 +208,13 @@ $serial = $primary_key = 'Id'; DefaultRate => 100, DefaultScale => 100, SignalCheckPoints => 0, - SignalCheckColour => '#0000BE', - WebColour => '#ff0000', + SignalCheckColour => q`'#0000BE'`, + WebColour => q`'#ff0000'`, Exif => 0, Sequence => undef, ZoneCount => 0, Refresh => undef, - DefaultCodec => 'auto', + DefaultCodec => q`'auto'`, Latitude => undef, Longitude => undef, );