monitorId update in onDetectorJpegOutputSecondary

merge-requests/210/merge
Moe 2021-05-03 18:50:30 -07:00
parent 4f2fd9a044
commit 5d672c240b
1 changed files with 1 additions and 1 deletions

View File

@ -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){