1 --- transcode-1.1.7/import/v4l/import_v4l2.c.orig 2020-08-28 08:28:44.311434934 +0000
2 +++ transcode-1.1.7/import/v4l/import_v4l2.c 2020-08-28 08:41:19.279323984 +0000
3 @@ -455,7 +455,7 @@
4 tc_log_warn(MOD_NAME,
5 "driver does not support cropping"
6 "(ioctl(VIDIOC_CROPCAP) returns \"%s\"), disabled",
7 - errno <= sys_nerr ? sys_errlist[errno] : "unknown");
8 + strerror(errno));
9 return TC_ERROR;
10 }
11 if (verbose_flag > TC_INFO) {
12 @@ -485,7 +485,7 @@
13 tc_log_warn(MOD_NAME,
14 "driver does not support inquiring cropping"
15 " parameters (ioctl(VIDIOC_G_CROP) returns \"%s\")",
16 - errno <= sys_nerr ? sys_errlist[errno] : "unknown");
17 + strerror(errno));
18 return -1;
19 }
20
21 @@ -513,7 +513,7 @@
22 tc_log_warn(MOD_NAME,
23 "driver does not support inquering cropping"
24 " parameters (ioctl(VIDIOC_G_CROP) returns \"%s\")",
25 - errno <= sys_nerr ? sys_errlist[errno] : "unknown");
26 + strerror(errno));
27 return -1;
28 }
29 if (verbose_flag > TC_INFO) {
30 @@ -613,7 +613,7 @@
31 if (err < 0) {
32 if (verbose_flag) {
33 tc_log_warn(MOD_NAME, "driver does not support setting parameters (ioctl(VIDIOC_S_PARM) returns \"%s\")",
34 - errno <= sys_nerr ? sys_errlist[errno] : "unknown");
35 + strerror(errno));
36 }
37 }
38 return TC_OK;
39 @@ -628,7 +628,7 @@
40 err = ioctl(vs->video_fd, VIDIOC_G_STD, &stdid);
41 if (err < 0) {
42 tc_log_warn(MOD_NAME, "driver does not support get std (ioctl(VIDIOC_G_STD) returns \"%s\")",
43 - errno <= sys_nerr ? sys_errlist[errno] : "unknown");
44 + strerror(errno));
45 memset(&stdid, 0, sizeof(v4l2_std_id));
46 }
47
|