diff --git a/web/includes/actions/monitor.php b/web/includes/actions/monitor.php index f1223a6f9..94e527e29 100644 --- a/web/includes/actions/monitor.php +++ b/web/includes/actions/monitor.php @@ -33,12 +33,11 @@ if ( $action == 'monitor' ) { if ( !$x10Monitor ) $x10Monitor = array(); } - if ( !canEdit('Monitors',$mid) ) { + if ( !canEdit('Monitors', $mid) ) { ZM\Warning('You do not have permission to edit this monitor'); return; } } else { - #$monitor = array(); if ( ZM_OPT_X10 ) { $x10Monitor = array(); } @@ -58,6 +57,7 @@ if ( $action == 'monitor' ) { 'Enabled' => 0, 'Exif' => 0, 'RTSPDescribe' => 0, + 'V4LMultiBuffer' => '', 'RecordAudio' => 0, 'Method' => 'raw', 'GroupIds' => array(), diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index 055a955fa..928bffc13 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -774,7 +774,7 @@ switch ( $tab ) { V4LMultiBuffer() == '0' ? 'checked="checked"' : '' ) ?>/> - V4LMultiBuffer() ? 'checked="checked"' : '' ) ?>/> + V4LMultiBuffer() == '' ? 'checked="checked"' : '' ) ?>/>