From 5d672c240b4d505ef5a43c30db28c499024d8292 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 3 May 2021 18:50:30 -0700 Subject: [PATCH] monitorId update in onDetectorJpegOutputSecondary --- libs/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/monitor.js b/libs/monitor.js index 553675ef..aeda0453 100644 --- a/libs/monitor.js +++ b/libs/monitor.js @@ -693,7 +693,7 @@ module.exports = function(s,config,lang){ } const onDetectorJpegOutputSecondary = (e,buffer) => { if(s.isAtleatOneDetectorPluginConnected){ - const activeMonitor = s.group[e.ke].activeMonitors[e.id] + const activeMonitor = s.group[e.ke].activeMonitors[e.id || e.mid] const theArray = activeMonitor.pipe4BufferPieces theArray.push(buffer) if(buffer[buffer.length-2] === 0xFF && buffer[buffer.length-1] === 0xD9){