[Mplayer-cvslog] CVS: main mencoder.c,1.54,1.55

LGB Z lgb at mplayer.dev.hu
Fri Jan 4 15:03:05 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv28873/main

Modified Files:
	mencoder.c 
Log Message:
libcss support in mencoder, too

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- mencoder.c	30 Dec 2001 13:20:55 -0000	1.54
+++ mencoder.c	4 Jan 2002 14:03:02 -0000	1.55
@@ -382,6 +382,25 @@
 
   if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
 
+#ifdef HAVE_LIBCSS
+//  current_module="libcss";
+  if (dvdimportkey) {
+    if (dvd_import_key(dvdimportkey)) {
+      mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_ErrorDVDkey);
+      exit(1);
+    }
+    mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_CmdlineDVDkey);
+  }
+  if (dvd_auth_device) {
+    //  if (dvd_auth(dvd_auth_device,f)) {
+    if (dvd_auth(dvd_auth_device,filename)) {
+      mp_msg(MSGT_CPLAYER,MSGL_FATAL,"Error in DVD auth...\n");
+      exit(1);
+    }
+    mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_DVDauthOk);
+  }
+#endif
+
   //demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);
   demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id);
   if(!demuxer){




More information about the MPlayer-cvslog mailing list