From 7275b56e6dbae3626dfda2170abcdee7396cbf65 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Sun, 10 Apr 2022 12:17:18 +0200 Subject: [PATCH] Fix some bugs --- http/http_h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/http_h264.c b/http/http_h264.c index 619e6e4..4200bf9 100644 --- a/http/http_h264.c +++ b/http/http_h264.c @@ -51,7 +51,6 @@ typedef struct { bool h264_is_key_frame(buffer_t *buf) { unsigned char *data = buf->start; - device_t *camera = buf->buf_list->device; if (buf->v4l2.flags & V4L2_BUF_FLAG_KEYFRAME) { E_LOG_DEBUG(buf, "Got key frame (from V4L2)!"); @@ -82,6 +81,7 @@ int http_video_buf_part(buffer_lock_t *buf_lock, buffer_t *buf, int frame, http_ if (!status->wrote_header) { fprintf(status->stream, VIDEO_HEADER); + status->wrote_header = true; } if (!fwrite(buf->start, buf->used, 1, status->stream)) { return -1;