[Mplayer-cvslog] CVS: main dvdauth.c,1.7,1.8
Jürgen Keil
jkeil at mplayer.dev.hu
Tue Aug 14 14:17:41 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv29672
Modified Files:
dvdauth.c
Log Message:
In case the open on the dvd device fails, print some hints based on errno
why the open has failed.
Index: dvdauth.c
===================================================================
RCS file: /cvsroot/mplayer/main/dvdauth.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- dvdauth.c 21 Jun 2001 00:06:40 -0000 1.7
+++ dvdauth.c 14 Aug 2001 12:17:38 -0000 1.8
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
//#include <string.h> // FIXME: conflicts with fs.h
+#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
@@ -76,7 +77,6 @@
*/
#ifdef __linux__
#include <linux/fs.h>
-#include <errno.h>
#ifndef FIBMAP
#define FIBMAP 1
@@ -185,7 +185,8 @@
DVDHandle dvd; /* DVD device handle */
if ((dvd=DVDOpenDevice(dev)) == DVDOpenFailed) {
- fprintf(stderr,"DVD: cannot open DVD device \"%s\".\n",dev);
+ fprintf(stderr,"DVD: cannot open DVD device \"%s\": %s.\n",
+ dev, strerror(errno));
return 1;
}
More information about the MPlayer-cvslog
mailing list