summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorlgb <lgb@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-20 14:32:09 +0000
committerlgb <lgb@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-20 14:32:09 +0000
commitcd663cd2f2ce800ad12918a33f030b85574bdfb8 (patch)
tree54f27a591b6678f7b2ab35df97b3900e41db58a5 /mplayer.c
parentea0d313e21bd1e711db76c47f830996f6d8e36ae (diff)
downloadmpv-cd663cd2f2ce800ad12918a33f030b85574bdfb8.tar.bz2
mpv-cd663cd2f2ce800ad12918a33f030b85574bdfb8.tar.xz
command line requested DVD key support for Arpi :)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@547 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index e26ba22e60..746cdcbf9b 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -613,6 +613,13 @@ if(vcd_track){
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");