Merge branch 'storageareas' of github.com:connortechnology/ZoneMinder into storageareas
This commit is contained in:
commit
ea38f7cca4
|
@ -69,7 +69,7 @@ std::string load_monitor_sql =
|
||||||
"SELECT Id, Name, ServerId, StorageId, Type, Function+0, Enabled, LinkedMonitors, "
|
"SELECT Id, Name, ServerId, StorageId, Type, Function+0, Enabled, LinkedMonitors, "
|
||||||
"AnalysisFPSLimit, AnalysisUpdateDelay, MaxFPS, AlarmMaxFPS,"
|
"AnalysisFPSLimit, AnalysisUpdateDelay, MaxFPS, AlarmMaxFPS,"
|
||||||
"Device, Channel, Format, V4LMultiBuffer, V4LCapturesPerFrame, " // V4L Settings
|
"Device, Channel, Format, V4LMultiBuffer, V4LCapturesPerFrame, " // V4L Settings
|
||||||
"Protocol, Method, Options, Host, Port, Path, Width, Height, Colours, Palette, Orientation+0, Deinterlacing, RTSPDescribe, "
|
"Protocol, Method, Options, User, Pass, Host, Port, Path, Width, Height, Colours, Palette, Orientation+0, Deinterlacing, RTSPDescribe, "
|
||||||
"SaveJPEGs, VideoWriter, EncoderParameters, "
|
"SaveJPEGs, VideoWriter, EncoderParameters, "
|
||||||
//" OutputCodec, Encoder, OutputContainer, "
|
//" OutputCodec, Encoder, OutputContainer, "
|
||||||
"RecordAudio, "
|
"RecordAudio, "
|
||||||
|
@ -2003,7 +2003,7 @@ int Monitor::LoadFfmpegMonitors(const char *file, Monitor **&monitors, Purpose p
|
||||||
"SELECT Id, Name, ServerId, StorageId, Type, Function+0, Enabled, LinkedMonitors, "
|
"SELECT Id, Name, ServerId, StorageId, Type, Function+0, Enabled, LinkedMonitors, "
|
||||||
"AnalysisFPSLimit, AnalysisUpdateDelay, MaxFPS, AlarmMaxFPS,"
|
"AnalysisFPSLimit, AnalysisUpdateDelay, MaxFPS, AlarmMaxFPS,"
|
||||||
"Device, Channel, Format, V4LMultiBuffer, V4LCapturesPerFrame, " // V4L Settings
|
"Device, Channel, Format, V4LMultiBuffer, V4LCapturesPerFrame, " // V4L Settings
|
||||||
"Protocol, Method, Options, Host, Port, Path, Width, Height, Colours, Palette, Orientation+0, Deinterlacing, RTSPDescribe, "
|
"Protocol, Method, Options, User, Pass, Host, Port, Path, Width, Height, Colours, Palette, Orientation+0, Deinterlacing, RTSPDescribe, "
|
||||||
"SaveJPEGs, VideoWriter, EncoderParameters,
|
"SaveJPEGs, VideoWriter, EncoderParameters,
|
||||||
"OutputCodec, Encoder, OutputContainer,"
|
"OutputCodec, Encoder, OutputContainer,"
|
||||||
" RecordAudio, "
|
" RecordAudio, "
|
||||||
|
@ -2056,6 +2056,8 @@ Monitor *Monitor::Load(MYSQL_ROW dbrow, bool load_zones, Purpose purpose) {
|
||||||
std::string protocol = dbrow[col] ? dbrow[col] : ""; col++;
|
std::string protocol = dbrow[col] ? dbrow[col] : ""; col++;
|
||||||
std::string method = dbrow[col] ? dbrow[col] : ""; col++;
|
std::string method = dbrow[col] ? dbrow[col] : ""; col++;
|
||||||
std::string options = dbrow[col] ? dbrow[col] : ""; col++;
|
std::string options = dbrow[col] ? dbrow[col] : ""; col++;
|
||||||
|
std::string user = dbrow[col] ? dbrow[col] : ""; col++;
|
||||||
|
std::string pass = dbrow[col] ? dbrow[col] : ""; col++;
|
||||||
std::string host = dbrow[col] ? dbrow[col] : ""; col++;
|
std::string host = dbrow[col] ? dbrow[col] : ""; col++;
|
||||||
std::string port = dbrow[col] ? dbrow[col] : ""; col++;
|
std::string port = dbrow[col] ? dbrow[col] : ""; col++;
|
||||||
std::string path = dbrow[col] ? dbrow[col] : ""; col++;
|
std::string path = dbrow[col] ? dbrow[col] : ""; col++;
|
||||||
|
@ -2078,7 +2080,7 @@ Monitor *Monitor::Load(MYSQL_ROW dbrow, bool load_zones, Purpose purpose) {
|
||||||
int colour = atoi(dbrow[col]); col++;
|
int colour = atoi(dbrow[col]); col++;
|
||||||
|
|
||||||
const char *event_prefix = dbrow[col]; col ++;
|
const char *event_prefix = dbrow[col]; col ++;
|
||||||
const char *label_format = dbrow[col]; col ++;
|
const char *label_format = dbrow[col] ? dbrow[col] : ""; col ++;
|
||||||
Coord label_coord = Coord( atoi(dbrow[col]), atoi(dbrow[col+1]) ); col += 2;
|
Coord label_coord = Coord( atoi(dbrow[col]), atoi(dbrow[col+1]) ); col += 2;
|
||||||
int label_size = atoi(dbrow[col]); col++;
|
int label_size = atoi(dbrow[col]); col++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue