[Mplayer-cvslog] CVS: main mplayer.c,1.366,1.367

Arpi of Ize arpi at mplayer.dev.hu
Tue Jan 15 01:22:38 CET 2002


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

Modified Files:
	mplayer.c 
Log Message:
hw spu support for dxr3 - patch by David Holm

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.366
retrieving revision 1.367
diff -u -r1.366 -r1.367
--- mplayer.c	14 Jan 2002 23:38:49 -0000	1.366
+++ mplayer.c	15 Jan 2002 00:22:34 -0000	1.367
@@ -2333,7 +2333,16 @@
 
 #ifdef USE_DVDREAD
   // DVD sub:
-  if(vo_spudec){
+  if(vo_flags & 0x08){
+    static vo_mpegpes_t packet;
+    static vo_mpegpes_t *pkg=&packet;
+    packet.timestamp=sh_video->timer*90000.0;
+    packet.id=0x20; /* Subpic */
+    while((packet.size=ds_get_packet_sub(d_dvdsub,&packet.data))>0){
+      mp_msg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: len=%d  v_pts=%5.3f  s_pts=%5.3f  \n",packet.size,d_video->pts,d_dvdsub->pts);
+      video_out->draw_frame(&pkg);
+    }
+  }else if(vo_spudec){
     unsigned char* packet=NULL;
     int len;
     current_module="spudec";




More information about the MPlayer-cvslog mailing list