1
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:33:46 +01:00

In case the open on the dvd device fails, print some hints based on errno

why the open has failed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1511 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
jkeil 2001-08-14 12:17:38 +00:00
parent 2895f54f52
commit 1ef79e9f00

View File

@ -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 @@ int descrambling=0;
*/
#ifdef __linux__
#include <linux/fs.h>
#include <errno.h>
#ifndef FIBMAP
#define FIBMAP 1
@ -185,7 +185,8 @@ int dvd_auth ( char *dev , char *filename )
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;
}