# HG changeset patch # User henry # Date 1048156820 0 # Node ID c840ad2ea2de861cf1d79e929e05243a0e341fe0 # Parent 20f0a254142d49c13d30562e8209322a3db26a71 replace sys_errlist with strerror() by Ivan Szanto diff -r 20f0a254142d -r c840ad2ea2de libmpdemux/tvi_v4l.c --- 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; } }