mirror of
https://github.com/pikvm/ustreamer.git
synced 2025-12-23 18:50:00 +00:00
fixed --every-frame and --min-frame-size
This commit is contained in:
parent
968df5d82b
commit
01f9d3ddc0
@ -112,14 +112,17 @@ 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_C_SIGNAL(&pool.workers[buf_info.index].has_job_cond);
|
||||
|
||||
pass_frame:
|
||||
{} // FIXME: for future mjpg support
|
||||
goto next_handlers;
|
||||
|
||||
/*if (_capture_release_buffer(dev, &buf_info) < 0) {
|
||||
pass_frame:
|
||||
|
||||
if (_capture_release_buffer(dev, &buf_info) < 0) {
|
||||
break;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
next_handlers:
|
||||
|
||||
if (FD_ISSET(dev->run->fd, &write_fds)) {
|
||||
LOG_ERROR("Got unexpected writing event, seems device was disconnected");
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user