From d157a8831334a65fb024c91104e23fccbc6f9050 Mon Sep 17 00:00:00 2001 From: "vdeo@scexao6" Date: Mon, 13 Nov 2023 09:45:11 +0000 Subject: [PATCH] stream TCP receive to use processinfo output post. --- src/COREMOD_memory/stream_TCP.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/COREMOD_memory/stream_TCP.c b/src/COREMOD_memory/stream_TCP.c index f5ca3696..effce0e6 100644 --- a/src/COREMOD_memory/stream_TCP.c +++ b/src/COREMOD_memory/stream_TCP.c @@ -1038,6 +1038,7 @@ imageID COREMOD_MEMORY_image_NETWORKreceive(int port, { frame_md = (TCP_BUFFER_METADATA *)(buff + framesize); + img_p->md->write = 1; img_p->md->cnt1 = frame_md->cnt1; // copy pixel data @@ -1089,21 +1090,7 @@ imageID COREMOD_MEMORY_image_NETWORKreceive(int port, monitorindex++; - img_p->md->cnt0++; - for(semnb = 0; semnb < img_p->md->sem; semnb++) - { - semval = ImageStreamIO_semvalue(img_p, semnb); - if(semval < SEMAPHORE_MAXVAL) - { - ImageStreamIO_sempost(img_p, semnb); - } - } - - sem_getvalue(img_p->semlog, &semval); - if(semval < 2) - { - sem_post(img_p->semlog); - } + processinfo_update_output_stream(processinfo, ID); } if(socketOpen == 0)