diff --git a/smemory.h b/smemory.h index fec16991..fcb48ad4 100644 --- a/smemory.h +++ b/smemory.h @@ -1,5 +1,5 @@ -#define QUEUE_SIZE 256 -#define PACKET_SIZE 32 * 1024 +#define QUEUE_SIZE 32 +#define PACKET_SIZE 64 * 1024 enum QueueType { Video0, diff --git a/src/interprocess.cpp b/src/interprocess.cpp index 78079625..9d6e86e2 100644 --- a/src/interprocess.cpp +++ b/src/interprocess.cpp @@ -77,6 +77,5 @@ peek_event(Queue* memory, EventType type){ Event pop_event(Queue* queue, EventType type){ queue->events[type].read = true; - BOOST_LOG(info) << "Receive event " << type; return queue->events[type]; } \ No newline at end of file diff --git a/src/video.cpp b/src/video.cpp index 03cdb2e8..c8cc32ef 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -1825,6 +1825,7 @@ namespace video { } if (idr_events->peek()) { + BOOST_LOG(info) << "idr frame"sv; requested_idr_frame = true; idr_events->pop(); } @@ -2064,6 +2065,7 @@ namespace video { } if (ctx->idr_events->peek()) { + BOOST_LOG(info) << "idr frame"sv; pos->session->request_idr_frame(); ctx->idr_events->pop(); }