Rename device_force_key

This commit is contained in:
Kamil Trzcinski 2022-04-05 08:34:57 +02:00
parent 2562d9881b
commit 0dd713fcaa
4 changed files with 3 additions and 5 deletions

View File

@ -50,7 +50,7 @@ void http_video(http_worker_t *worker, FILE *stream)
goto error; goto error;
} }
} else if (!requested_key_frame) { } else if (!requested_key_frame) {
device_force_key(buf->buf_list->device); device_video_force_key(buf->buf_list->device);
requested_key_frame = true; requested_key_frame = true;
} }
buffer_consumed(buf); buffer_consumed(buf);

View File

@ -2,8 +2,6 @@
#include <stdlib.h> #include <stdlib.h>
#include "http/http.h" #include "http/http.h"
#include "hw/buffer.h"
#include "hw/buffer_lock.h"
void http_index(http_worker_t *worker, FILE *stream) void http_index(http_worker_t *worker, FILE *stream)
{ {

View File

@ -152,7 +152,7 @@ error:
return -1; return -1;
} }
int device_force_key(device_t *dev) int device_video_force_key(device_t *dev)
{ {
struct v4l2_control ctl = {0}; struct v4l2_control ctl = {0};
ctl.id = V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME; ctl.id = V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME;

View File

@ -22,7 +22,7 @@ int device_open_buffer_list(device_t *dev, bool do_capture, unsigned width, unsi
int device_consume_event(device_t *device); int device_consume_event(device_t *device);
int device_stream(device_t *dev, bool do_on); int device_stream(device_t *dev, bool do_on);
int device_force_key(device_t *dev); int device_video_force_key(device_t *dev);
int device_set_option(device_t *dev, const char *name, uint32_t id, int32_t value); int device_set_option(device_t *dev, const char *name, uint32_t id, int32_t value);
int device_set_fps(device_t *dev, int desired_fps); int device_set_fps(device_t *dev, int desired_fps);