summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-08-05 15:11:35 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-08-05 15:11:35 +0200
commit57692504cd4576a40d442d866e12eba09835db03 (patch)
tree0521d2934de89cb1dedcc8aa04c75b14beaea312 /vdr.c
parent8c1fc6560d2ef79565c89f1f5b6223e2ee829a2e (diff)
downloadvdr-57692504cd4576a40d442d866e12eba09835db03.tar.gz
vdr-57692504cd4576a40d442d866e12eba09835db03.tar.bz2
Improved DVD handling
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c6
1 files changed, 5 insertions, 1 deletions
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 <getopt.h>
@@ -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);