@@@ dvdrip-upload: change settings while i'm stealing someone else's internet
[dvdrip] / dvd-check-keys.c
index 1bdc082..edbce10 100644 (file)
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
   setlocale(LC_ALL, "");
   progress_init(&progress);
 
-  open_dvd(argv[optind], O_RDONLY, 0, &dvd);
+  if (open_dvd(argv[optind], O_RDONLY, 0, &dvd)) exit(2);
   css = dvdcss_open(argv[optind]);
   if (!css)
     bail_syserr(errno, "failed to attach CSS machinery to `%s'",