Mercurial > mplayer.hg
comparison mplayer.c @ 1125:3ec8f4779e81
-frames 0 fixed
author | arpi_esp |
---|---|
date | Wed, 13 Jun 2001 21:57:36 +0000 |
parents | 0e95f30ffd4c |
children | 5dc01778e055 |
comparison
equal
deleted
inserted
replaced
1124:0e95f30ffd4c | 1125:3ec8f4779e81 |
---|---|
1496 | 1496 |
1497 total_time_usage_start=GetTimer(); | 1497 total_time_usage_start=GetTimer(); |
1498 | 1498 |
1499 while(!eof){ | 1499 while(!eof){ |
1500 | 1500 |
1501 if(play_n_frames>=0){ | |
1502 --play_n_frames; | |
1503 if(play_n_frames<0) exit_player("Requested number of frames played"); | |
1504 } | |
1505 | |
1501 /*========================== PLAY AUDIO ============================*/ | 1506 /*========================== PLAY AUDIO ============================*/ |
1502 //if(!has_audio){ | 1507 //if(!has_audio){ |
1503 // int playsize=512; | 1508 // int playsize=512; |
1504 // a_frame+=playsize/(float)(sh_audio->o_bps); | 1509 // a_frame+=playsize/(float)(sh_audio->o_bps); |
1505 // a_pts+=playsize/(float)(sh_audio->o_bps); | 1510 // a_pts+=playsize/(float)(sh_audio->o_bps); |
1833 // usec_sleep(50000); // test only! | 1838 // usec_sleep(50000); // test only! |
1834 | 1839 |
1835 } | 1840 } |
1836 | 1841 |
1837 current_module=NULL; | 1842 current_module=NULL; |
1838 | |
1839 if(play_n_frames>=0){ | |
1840 --play_n_frames; | |
1841 if(play_n_frames<0) exit_player("Requested number of frames played"); | |
1842 } | |
1843 | 1843 |
1844 if(eof) break; | 1844 if(eof) break; |
1845 if(force_redraw){ | 1845 if(force_redraw){ |
1846 --force_redraw; | 1846 --force_redraw; |
1847 if(!force_redraw) osd_function=OSD_PLAY; | 1847 if(!force_redraw) osd_function=OSD_PLAY; |