Allow Method in Monitors to be NULL
This commit is contained in:
parent
68521aa0d4
commit
868e17a414
|
@ -562,7 +562,7 @@ CREATE TABLE `Monitors` (
|
|||
`V4LMultiBuffer` tinyint(1) unsigned,
|
||||
`V4LCapturesPerFrame` tinyint(3) unsigned,
|
||||
`Protocol` varchar(16),
|
||||
`Method` varchar(16) NOT NULL default '',
|
||||
`Method` varchar(16) default '',
|
||||
`Host` varchar(64),
|
||||
`Port` varchar(8) NOT NULL default '',
|
||||
`SubPath` varchar(64) NOT NULL default '',
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE Monitors MODIFY TotalEventDiskSpace BIGINT default NULL;
|
||||
ALTER TABLE Monitors MODIFY Method VARCHAR(16) default NULL;
|
||||
|
|
@ -1937,7 +1937,7 @@ int Monitor::LoadLocalMonitors( const char *device, Monitor **&monitors, Purpose
|
|||
}
|
||||
Debug( 1, "Got %d for v4l_captures_per_frame", v4l_captures_per_frame );
|
||||
col++;
|
||||
const char *method = dbrow[col]; col++;
|
||||
const char *method = dbrow[col] ? dbrow[col] : ""; col++;
|
||||
|
||||
int width = atoi(dbrow[col]); col++;
|
||||
int height = atoi(dbrow[col]); col++;
|
||||
|
@ -2438,7 +2438,7 @@ int Monitor::LoadFfmpegMonitors( const char *file, Monitor **&monitors, Purpose
|
|||
const char *linked_monitors = dbrow[col] ? dbrow[col] : ""; col++;
|
||||
|
||||
const char *path = dbrow[col]; col++;
|
||||
const char *method = dbrow[col]; col++;
|
||||
const char *method = dbrow[col] ? dbrow[col] : ""; col++;
|
||||
const char *options = dbrow[col] ? dbrow[col] : ""; col++;
|
||||
|
||||
int width = atoi(dbrow[col]); col++;
|
||||
|
|
Loading…
Reference in New Issue