changeset 9624:c840ad2ea2de

replace sys_errlist with strerror() by Ivan Szanto
author henry
date Thu, 20 Mar 2003 10:40:20 +0000
parents 20f0a254142d
children bc24dd70c6e2
files libmpdemux/tvi_v4l.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tvi_v4l.c	Thu Mar 20 07:51:03 2003 +0000
+++ b/libmpdemux/tvi_v4l.c	Thu Mar 20 10:40:20 2003 +0000
@@ -460,7 +460,7 @@
         if (ioctl(priv->video_fd, MJPIOC_G_PARAMS, &bparm) < 0)
         {
            mp_msg(MSGT_TV, MSGL_ERR, 
-              "  MJP: Error getting video parameters: %s\n", sys_errlist[errno]);
+              "  MJP: Error getting video parameters: %s\n", strerror(errno));
            goto err;
         }
 
@@ -489,14 +489,14 @@
         if (ioctl(priv->video_fd, MJPIOC_S_PARAMS, &bparm) < 0)
          {
             mp_msg(MSGT_TV, MSGL_ERR,
-               "  MJP: Error setting video parameters: %s\n", sys_errlist[errno]);
+               "  MJP: Error setting video parameters: %s\n", strerror(errno));
             goto err;
          }
 
         if (ioctl(priv->video_fd, MJPIOC_G_PARAMS, &bparm) < 0)
         {
            mp_msg(MSGT_TV, MSGL_ERR, 
-              "  MJP: Error getting video parameters: %s\n", sys_errlist[errno]);
+              "  MJP: Error getting video parameters: %s\n", strerror(errno));
            goto err;
         }
 
@@ -521,7 +521,7 @@
         if (ioctl(priv->video_fd, MJPIOC_REQBUFS,&(breq)) < 0)
         {
            mp_msg (MSGT_TV, MSGL_ERR,
-              "  MJP: Error requesting video buffers: %s\n", sys_errlist[errno]);
+              "  MJP: Error requesting video buffers: %s\n", strerror(errno));
            goto err;
         }
         mp_msg(MSGT_TV, MSGL_INFO,
@@ -533,7 +533,7 @@
         if (priv -> mmap == MAP_FAILED)
         {
            mp_msg(MSGT_TV, MSGL_INFO,
-              "  MJP: Error mapping video buffers: %s\n", sys_errlist[errno]);
+              "  MJP: Error mapping video buffers: %s\n", strerror(errno));
            goto err;
         }
       }