transcode-1.1.7-glibc-2.32.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. @@ -513,7 +513,7 @@
  21. tc_log_warn(MOD_NAME,
  22. "driver does not support inquering cropping"
  23. " parameters (ioctl(VIDIOC_G_CROP) returns \"%s\")",
  24. - errno <= sys_nerr ? sys_errlist[errno] : "unknown");
  25. + strerror(errno));
  26. return -1;
  27. }
  28. if (verbose_flag > TC_INFO) {
  29. @@ -613,7 +613,7 @@
  30. if (err < 0) {
  31. if (verbose_flag) {
  32. tc_log_warn(MOD_NAME, "driver does not support setting parameters (ioctl(VIDIOC_S_PARM) returns \"%s\")",
  33. - errno <= sys_nerr ? sys_errlist[errno] : "unknown");
  34. + strerror(errno));
  35. }
  36. }
  37. return TC_OK;
  38. @@ -628,7 +628,7 @@
  39. err = ioctl(vs->video_fd, VIDIOC_G_STD, &stdid);
  40. if (err < 0) {
  41. tc_log_warn(MOD_NAME, "driver does not support get std (ioctl(VIDIOC_G_STD) returns \"%s\")",
  42. - errno <= sys_nerr ? sys_errlist[errno] : "unknown");
  43. + strerror(errno));
  44. memset(&stdid, 0, sizeof(v4l2_std_id));
  45. }