diff mplayer.c @ 546:22ed5f5821e2

command line requested DVD key support for Arpi :)
author lgb
date Fri, 20 Apr 2001 14:32:09 +0000
parents 1409f80a497d
children c97496b240c1
line wrap: on
line diff
--- a/mplayer.c	Fri Apr 20 12:09:32 2001 +0000
+++ b/mplayer.c	Fri Apr 20 14:32:09 2001 +0000
@@ -613,6 +613,13 @@
   f=open(filename,O_RDONLY);
   if(f<0){ printf("File not found: '%s'\n",filename);return 1; }
 #ifdef HAVE_LIBCSS
+  if (dvdimportkey) {
+    if (dvd_import_key(dvdimportkey)) {
+	fprintf(stderr,"Error processing DVD KEY.\n");
+	exit(1);
+    }
+    printf("DVD command line requested key is stored for descrambling.\n");
+  }
   if (dvd_device) {
     if (dvd_auth(dvd_device,f)) exit(0);
     printf("DVD auth sequence seems to be OK.\n");