mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-07-20 18:51:58 +00:00
minor fix
This commit is contained in:
@@ -254,8 +254,8 @@ static void _drm_cleanup(us_drm_s *drm) {
|
||||
run->n_bufs = 0;
|
||||
}
|
||||
|
||||
US_CLOSE_FD(run->status_fd, close);
|
||||
US_CLOSE_FD(run->fd, close);
|
||||
US_CLOSE_FD(run->status_fd);
|
||||
US_CLOSE_FD(run->fd);
|
||||
|
||||
run->crtc_id = 0;
|
||||
run->next_n_buf = 0;
|
||||
@@ -391,7 +391,7 @@ static int _drm_check_status(us_drm_s *drm) {
|
||||
return (status_ch == 'd' ? -2 : 0);
|
||||
|
||||
error:
|
||||
US_CLOSE_FD(run->status_fd, close);
|
||||
US_CLOSE_FD(run->status_fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ static void *_follower_thread(void *v_unix_follow) {
|
||||
|
||||
const bool online = !connect(fd, (struct sockaddr *)&addr, sizeof(addr));
|
||||
atomic_store(&_g_ustreamer_online, online);
|
||||
US_CLOSE_FD(fd, close); // cppcheck-suppress unreadVariable
|
||||
US_CLOSE_FD(fd); // cppcheck-suppress unreadVariable
|
||||
|
||||
usleep(200 * 1000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user