[MPlayer-cvslog] CVS: main mplayer.c,1.948,1.949
Uoti Urpala CVS
syncmail at mplayerhq.hu
Thu Apr 27 15:16:43 CEST 2006
CVS change done by Uoti Urpala CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv27264
Modified Files:
mplayer.c
Log Message:
Remove useless "#if 0" blocks
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.948
retrieving revision 1.949
diff -u -r1.948 -r1.949
--- mplayer.c 27 Apr 2006 12:40:28 -0000 1.948
+++ mplayer.c 27 Apr 2006 13:16:40 -0000 1.949
@@ -3944,19 +3944,6 @@
}
delay += sh_audio->a_out_buffer_len*playback_speed/(float)ao_data.bps;
-#if 0
- if(pts_from_bps){
- // PTS = sample_no / samplerate
- unsigned int samples=
-// (sh_audio->audio.dwSampleSize)?
-// ((ds_tell(d_audio)-sh_audio->a_in_buffer_len)/sh_audio->audio.dwSampleSize) :
- ds_tell_block(d_audio); // <- used for VBR audio
- samples+=sh_audio->audio.dwStart; // offset
- a_pts=samples*(float)sh_audio->audio.dwScale/(float)sh_audio->audio.dwRate;
- delay_corrected=1;
- a_pts-=(sh_audio->a_in_buffer_len)/(float)sh_audio->i_bps;
- } else
-#endif
{
// PTS = (last timestamp) + (bytes after last timestamp)/(bytes per sec)
a_pts = sh_audio->pts;
@@ -4866,22 +4853,6 @@
if (vo_vobsub)
//vobsub_reset(vo_vobsub);
vobsub_seek(vo_vobsub,sh_video->pts);
-#if 0
- if(sh_video && d_video->packs == 0)
- ds_fill_buffer(d_video);
- if(sh_audio){
- if(d_audio->packs == 0)
- ds_fill_buffer(d_audio);
- if( mp_msg_test(MSGT_AVSYNC,MSGL_V) ){
- float a_pts=d_audio->pts;
- a_pts+=(ds_tell_pts(d_audio)-sh_audio->a_in_buffer_len)/(float)sh_audio->i_bps;
- mp_msg(MSGT_AVSYNC,MSGL_V,"SEEK: A: %5.3f V: %5.3f A-V: %5.3f \n",a_pts,d_video->pts,a_pts-d_video->pts);
- }
- mp_msg(MSGT_AVSYNC,MSGL_STATUS,"A:%6.1f V:%6.1f A-V:%7.3f ct: ? \r",d_audio->pts,d_video->pts,0.0f);
- } else {
- mp_msg(MSGT_AVSYNC,MSGL_STATUS,"A: --- V:%6.1f \r",d_video->pts);
- }
-#endif
fflush(stdout);
if(sh_video){
More information about the MPlayer-cvslog
mailing list