[MPlayer-dev-eng] tvi_v4l.c

Ivan Szanto szivan at duticai.TWI.TUDelft.NL
Thu Mar 20 09:34:14 CET 2003


Hali,


sorry, my fault. Here's a "patch". Please apply.

Ivan

-- 

On Thu, 20 Mar 2003, Pontscho wrote:

>
>
> I found today morning:
>
> libmpdemux/libmpdemux.a(tvi_v4l.o)(.text+0x965): In function `init':
> /root/mplaya/main/libmpdemux/tvi_v4l.c:462: `sys_errlist' is deprecated;
> use `strerror' or `strerror_r' instead
>
> Please fix this, thx.
-------------- next part --------------
diff -Naur main/libmpdemux/tvi_v4l.c main-mjpeg/libmpdemux/tvi_v4l.c
--- main/libmpdemux/tvi_v4l.c	Wed Mar 19 16:26:58 2003
+++ main-mjpeg/libmpdemux/tvi_v4l.c	Thu Mar 20 09:18:48 2003
@@ -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;
         }
       }


More information about the MPlayer-dev-eng mailing list