comparison mplayer.c @ 3843:38e84c14280d

some spudec cleanup
author arpi
date Fri, 28 Dec 2001 19:47:37 +0000
parents 32e488a4fc40
children e8e7ca8995a1
comparison
equal deleted inserted replaced
3842:32e488a4fc40 3843:38e84c14280d
2213 2213
2214 #ifdef USE_DVDREAD 2214 #ifdef USE_DVDREAD
2215 // DVD sub: 2215 // DVD sub:
2216 if(vo_spudec){ 2216 if(vo_spudec){
2217 unsigned char* packet=NULL; 2217 unsigned char* packet=NULL;
2218 int len=ds_get_packet_sub(d_dvdsub,&packet); 2218 int len;
2219 current_module="spudec"; 2219 current_module="spudec";
2220 if(len>=2){ 2220 while((len=ds_get_packet_sub(d_dvdsub,&packet))>0){
2221 int len2; 2221 mp_msg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: len=%d v_pts=%5.3f s_pts=%5.3f \n",len,d_video->pts,d_dvdsub->pts);
2222 len2=(packet[0]<<8)+packet[1];
2223 mp_msg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: %d / %d v_pts=%5.3f s_pts=%5.3f \n",len,len2,d_video->pts,d_dvdsub->pts);
2224 spudec_assemble(vo_spudec,packet,len,100*d_dvdsub->pts); 2222 spudec_assemble(vo_spudec,packet,len,100*d_dvdsub->pts);
2225 } else {
2226 if(len>=0)
2227 mp_msg(MSGT_CPLAYER,MSGL_V,"invalid dvd sub\n");
2228 } 2223 }
2229 spudec_heartbeat(vo_spudec,100*d_video->pts); 2224 spudec_heartbeat(vo_spudec,100*d_video->pts);
2230 current_module=NULL; 2225 current_module=NULL;
2231 } 2226 }
2232 #endif 2227 #endif