device: fix compiler bugs
This commit is contained in:
parent
edba5098d2
commit
9db8ba5fa5
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
static bool camera_output_matches_capture(buffer_list_t *capture, unsigned target_height, unsigned format)
|
static bool camera_output_matches_capture(buffer_list_t *capture, unsigned target_height, unsigned format)
|
||||||
{
|
{
|
||||||
if (target_height && abs(capture->fmt.height - target_height) > MATCH_ALIGN_SIZE) {
|
if (target_height && abs((int)capture->fmt.height - (int)target_height) > MATCH_ALIGN_SIZE) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ buffer_list_t *device_open_buffer_list2(device_t *dev, const char *path, bool do
|
|||||||
{
|
{
|
||||||
char name[64];
|
char name[64];
|
||||||
int index = 0;
|
int index = 0;
|
||||||
buffer_list_t *buf_list;
|
buffer_list_t *buf_list = NULL;
|
||||||
|
|
||||||
if (!dev) {
|
if (!dev) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -26,7 +26,7 @@ void fake_camera_sensor(struct media_v2_topology *topology)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char source[256];
|
char source[256];
|
||||||
sprintf(source, fake_camera);
|
strcpy(source, fake_camera);
|
||||||
|
|
||||||
char *target = strstr(source, "=");
|
char *target = strstr(source, "=");
|
||||||
if (!target) {
|
if (!target) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user