Add buffer needs

This commit is contained in:
Kamil Trzcinski
2022-04-04 22:44:22 +02:00
parent 659240889f
commit a20883e8f1
6 changed files with 61 additions and 5 deletions

View File

@@ -20,6 +20,11 @@ void http_h264_capture(buffer_t *buf)
buffer_lock_capture(&http_h264, buf);
}
bool http_h264_needs_buffer()
{
return buffer_lock_needs_buffer(&http_h264);
}
void http_video(http_worker_t *worker, FILE *stream)
{
bool had_key_frame = false;