From 50326cf80c3fc3d857f30ceb1baa61426f5476c4 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 5 Aug 2021 14:48:06 -0400 Subject: [PATCH] zmu may still output results even if it encounters errors, so continue even if we have an error return status from zmu. --- web/skins/classic/views/monitorprobe.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/web/skins/classic/views/monitorprobe.php b/web/skins/classic/views/monitorprobe.php index b02450384..7bb15a68d 100644 --- a/web/skins/classic/views/monitorprobe.php +++ b/web/skins/classic/views/monitorprobe.php @@ -18,7 +18,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. // -if ( !canEdit('Monitors') ) { +if (!canEdit('Monitors')) { $view = 'error'; return; } @@ -31,11 +31,9 @@ function probeV4L() { $command = getZmuCommand(' --query --device'); if ( !empty($_REQUEST['device']) ) $command .= '='.escapeshellarg($_REQUEST['device']); - $result = exec(escapeshellcmd($command), $output, $status); - if ( $status ) { - ZM\Error("Unable to probe local cameras using $command, status is '$status' " . implode("\n",$output)); - return $cameras; + if ($status) { + ZM\Warning("Errors while probe local cameras using $command, status is '$status' " . implode("\n", $output)); } $monitors = array(); @@ -325,15 +323,15 @@ xhtmlHeaders(__FILE__, translate('MonitorProbe') );

-
+ - +

- 'configureButtons(this)')); ?> + 'configureButtons')); ?>