diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2002-10-24 12:04:14 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2002-10-24 12:04:14 +0000 |
commit | 9c93c6f34113f70519158efaccc8c3add2849b87 (patch) | |
tree | 1bfdd3eda8372502b1cfc63d5f285366f77116ba /sys/v4l2/v4l2-overlay_calls.c | |
parent | 945a43139b558088e45f21628c8f31388b223025 (diff) | |
download | gst-plugins-bad-9c93c6f34113f70519158efaccc8c3add2849b87.tar.gz gst-plugins-bad-9c93c6f34113f70519158efaccc8c3add2849b87.tar.bz2 gst-plugins-bad-9c93c6f34113f70519158efaccc8c3add2849b87.zip |
Use strerror() instead of sys_errlist[] (deprecated)
Original commit message from CVS:
Use strerror() instead of sys_errlist[] (deprecated)
Diffstat (limited to 'sys/v4l2/v4l2-overlay_calls.c')
-rw-r--r-- | sys/v4l2/v4l2-overlay_calls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/v4l2/v4l2-overlay_calls.c b/sys/v4l2/v4l2-overlay_calls.c index 7eecb49d..a99250e4 100644 --- a/sys/v4l2/v4l2-overlay_calls.c +++ b/sys/v4l2/v4l2-overlay_calls.c @@ -57,14 +57,14 @@ gst_v4l2_set_display (GstV4l2Element *v4l2element, switch (system(buff)) { case -1: gst_element_error(GST_ELEMENT(v4l2element), - "Could not start v4l-conf: %s", sys_errlist[errno]); + "Could not start v4l-conf: %s", strerror(errno)); g_free(buff); return FALSE; case 0: break; default: gst_element_error(GST_ELEMENT(v4l2element), - "v4l-conf failed to run correctly: %s", sys_errlist[errno]); + "v4l-conf failed to run correctly: %s", strerror(errno)); g_free(buff); return FALSE; } @@ -106,7 +106,7 @@ gst_v4l2_set_window (GstV4l2Element *v4l2element, if (ioctl(v4l2element->video_fd, VIDIOC_S_WIN, &vwin) < 0) { gst_element_error(GST_ELEMENT(v4l2element), "Failed to set the video window on device %s: %s", - v4l2element->device, sys_errlist[errno]); + v4l2element->device, strerror(errno)); return FALSE; } @@ -133,7 +133,7 @@ gst_v4l2_enable_overlay (GstV4l2Element *v4l2element, if (ioctl(v4l2element->video_fd, VIDIOC_PREVIEW, &doit) < 0) { gst_element_error(GST_ELEMENT(v4l2element), "Failed to %s overlay display for device %s: %s", - enable?"enable":"disable", v4l2element->device, sys_errlist[errno]); + enable?"enable":"disable", v4l2element->device, strerror(errno)); return FALSE; } |