defaults need to be quoted because they are evalled

This commit is contained in:
Isaac Connor 2021-09-04 10:43:25 -04:00
parent ae0f7acd56
commit 29e8d39c74
1 changed files with 8 additions and 8 deletions

View File

@ -136,8 +136,8 @@ $serial = $primary_key = 'Id';
%defaults = ( %defaults = (
ServerId => 0, ServerId => 0,
StorageId => 0, StorageId => 0,
Type => 'Ffmpeg', Type => q`'Ffmpeg'`,
Function => 'Mocord', Function => q`'Mocord'`,
Enabled => 1, Enabled => 1,
LinkedMonitors => undef, LinkedMonitors => undef,
Device => '', Device => '',
@ -166,15 +166,15 @@ $serial = $primary_key = 'Id';
VideoWriter => 0, VideoWriter => 0,
OutputCodec => undef, OutputCodec => undef,
OutputContainer => 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, RecordAudio=>0,
RTSPDescribe=>0, RTSPDescribe=>0,
Brightness => -1, Brightness => -1,
Contrast => -1, Contrast => -1,
Hue => -1, Hue => -1,
Colour => -1, Colour => -1,
EventPrefix => 'Event-', EventPrefix => q`'Event-'`,
LabelFormat => '%N - %d/%m/%y %H:%M:%S', LabelFormat => '',
LabelX => 0, LabelX => 0,
LabelY => 0, LabelY => 0,
LabelSize => 1, LabelSize => 1,
@ -208,13 +208,13 @@ $serial = $primary_key = 'Id';
DefaultRate => 100, DefaultRate => 100,
DefaultScale => 100, DefaultScale => 100,
SignalCheckPoints => 0, SignalCheckPoints => 0,
SignalCheckColour => '#0000BE', SignalCheckColour => q`'#0000BE'`,
WebColour => '#ff0000', WebColour => q`'#ff0000'`,
Exif => 0, Exif => 0,
Sequence => undef, Sequence => undef,
ZoneCount => 0, ZoneCount => 0,
Refresh => undef, Refresh => undef,
DefaultCodec => 'auto', DefaultCodec => q`'auto'`,
Latitude => undef, Latitude => undef,
Longitude => undef, Longitude => undef,
); );