mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-14 03:23:43 +00:00
fix
This commit is contained in:
@@ -264,7 +264,6 @@ void us_device_close(us_device_s *dev) {
|
|||||||
_D_LOG_PERROR("Can't stop capturing");
|
_D_LOG_PERROR("Can't stop capturing");
|
||||||
}
|
}
|
||||||
run->streamon = false;
|
run->streamon = false;
|
||||||
_D_LOG_DEBUG("VIDIOC_STREAMOFF successful");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (run->hw_bufs != NULL) {
|
if (run->hw_bufs != NULL) {
|
||||||
@@ -291,7 +290,6 @@ void us_device_close(us_device_s *dev) {
|
|||||||
}
|
}
|
||||||
US_DELETE(run->hw_bufs, free);
|
US_DELETE(run->hw_bufs, free);
|
||||||
run->n_bufs = 0;
|
run->n_bufs = 0;
|
||||||
_D_LOG_DEBUG("All HW buffers released");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
US_CLOSE_FD(run->fd);
|
US_CLOSE_FD(run->fd);
|
||||||
|
|||||||
Reference in New Issue
Block a user