aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.c b/main.c
index 65ce2ba..9d41124 100644
--- a/main.c
+++ b/main.c
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <string.h>
#include <linux/videodev2.h>
+#include <linux/media.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <poll.h>
@@ -275,10 +276,21 @@ static void *input_thread_func(void *args)
fs = 0;
}
+ ret = video_setup_extra_control_out(i,n);
+ if (ret)
+ {
+ err("Unable to video_setup_extra_control_out: %s\n",strerror(errno));
+ return NULL;
+ }
ret = video_queue_buf_out(i, n, fs);
if (ret)
continue;
+ ret = ioctl(vid->request_fd_out[n], MEDIA_REQUEST_IOC_QUEUE, NULL);
+ if (ret < 0) {
+ err("Unable to queue media request: %s\n",strerror(errno));
+ return NULL;
+ }
pthread_mutex_lock(&i->lock);
vid->out_buf_flag[n] = 1;
pthread_mutex_unlock(&i->lock);