mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-02-18 02:55:46 +00:00
fixed --every-frame and --min-frame-size
This commit is contained in:
parent
968df5d82b
commit
01f9d3ddc0
@ -112,13 +112,16 @@ void capture_loop(struct device_t *dev, sig_atomic_t *volatile global_stop) {
|
|||||||
A_PTHREAD_M_UNLOCK(&pool.workers[buf_info.index].has_job_mutex);
|
A_PTHREAD_M_UNLOCK(&pool.workers[buf_info.index].has_job_mutex);
|
||||||
A_PTHREAD_C_SIGNAL(&pool.workers[buf_info.index].has_job_cond);
|
A_PTHREAD_C_SIGNAL(&pool.workers[buf_info.index].has_job_cond);
|
||||||
|
|
||||||
pass_frame:
|
goto next_handlers;
|
||||||
{} // FIXME: for future mjpg support
|
|
||||||
|
|
||||||
/*if (_capture_release_buffer(dev, &buf_info) < 0) {
|
pass_frame:
|
||||||
|
|
||||||
|
if (_capture_release_buffer(dev, &buf_info) < 0) {
|
||||||
break;
|
break;
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
next_handlers:
|
||||||
|
|
||||||
if (FD_ISSET(dev->run->fd, &write_fds)) {
|
if (FD_ISSET(dev->run->fd, &write_fds)) {
|
||||||
LOG_ERROR("Got unexpected writing event, seems device was disconnected");
|
LOG_ERROR("Got unexpected writing event, seems device was disconnected");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user