diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-05 15:11:35 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-05 15:11:35 +0200 |
commit | 57692504cd4576a40d442d866e12eba09835db03 (patch) | |
tree | 0521d2934de89cb1dedcc8aa04c75b14beaea312 /vdr.c | |
parent | 8c1fc6560d2ef79565c89f1f5b6223e2ee829a2e (diff) | |
download | vdr-57692504cd4576a40d442d866e12eba09835db03.tar.gz vdr-57692504cd4576a40d442d866e12eba09835db03.tar.bz2 |
Improved DVD handling
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |