From 57692504cd4576a40d442d866e12eba09835db03 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 5 Aug 2001 15:11:35 +0200 Subject: Improved DVD handling --- vdr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vdr.c') diff --git a/vdr.c b/vdr.c index 765eb29b..787f9cf8 100644 --- a/vdr.c +++ b/vdr.c @@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.59 2001/08/02 13:48:51 kls Exp $ + * $Id: vdr.c 1.60 2001/08/05 12:58:12 kls Exp $ */ #include @@ -163,6 +163,10 @@ int main(int argc, char *argv[]) optarg[strlen(optarg) - 1] = 0; break; case 'V': cDVD::SetDeviceName(optarg); + if (!cDVD::DriveExists()) { + fprintf(stderr, "vdr: DVD drive not found: %s\n", optarg); + return 2; + } break; case 'w': if (isnumber(optarg)) { int t = atoi(optarg); -- cgit v1.2.3