mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-12 10:33:42 +00:00
moved xioctl() to libs
This commit is contained in:
@@ -26,8 +26,7 @@
|
|||||||
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
#include "../libs/tools.h"
|
#include "tools.h"
|
||||||
#include "../libs/logging.h"
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CFG_XIOCTL_RETRIES
|
#ifndef CFG_XIOCTL_RETRIES
|
||||||
@@ -51,10 +50,5 @@ INLINE int xioctl(int fd, int request, void *arg) {
|
|||||||
|| errno == ETIMEDOUT
|
|| errno == ETIMEDOUT
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// cppcheck-suppress knownConditionTrueFalse
|
|
||||||
if (retval && retries <= 0) {
|
|
||||||
LOG_PERROR("ioctl(%d) retried %u times; giving up", request, XIOCTL_RETRIES);
|
|
||||||
}
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
@@ -45,8 +45,7 @@
|
|||||||
#include "../libs/logging.h"
|
#include "../libs/logging.h"
|
||||||
#include "../libs/threading.h"
|
#include "../libs/threading.h"
|
||||||
#include "../libs/frame.h"
|
#include "../libs/frame.h"
|
||||||
|
#include "../libs/xioctl.h"
|
||||||
#include "xioctl.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define VIDEO_MIN_WIDTH ((unsigned)160)
|
#define VIDEO_MIN_WIDTH ((unsigned)160)
|
||||||
|
|||||||
@@ -39,8 +39,7 @@
|
|||||||
#include "../libs/tools.h"
|
#include "../libs/tools.h"
|
||||||
#include "../libs/logging.h"
|
#include "../libs/logging.h"
|
||||||
#include "../libs/frame.h"
|
#include "../libs/frame.h"
|
||||||
|
#include "../libs/xioctl.h"
|
||||||
#include "xioctl.h"
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user