comparison mplayer.c @ 22299:073bd05d00a6

Remove useless fflush(stdout) calls. mp_msg already flushes output, and there is no other output before the calls.
author uau
date Thu, 22 Feb 2007 23:44:43 +0000
parents a34c7ed7ff6d
children 83375f3a276b
comparison
equal deleted inserted replaced
22298:a34c7ed7ff6d 22299:073bd05d00a6
2082 set_osd_msg(OSD_MSG_PAUSE, 1, 0, "%s", msg+1); 2082 set_osd_msg(OSD_MSG_PAUSE, 1, 0, "%s", msg+1);
2083 update_osd_msg(); 2083 update_osd_msg();
2084 } else 2084 } else
2085 mp_msg(MSGT_CPLAYER,MSGL_STATUS,MSGTR_Paused); 2085 mp_msg(MSGT_CPLAYER,MSGL_STATUS,MSGTR_Paused);
2086 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_PAUSED\n"); 2086 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_PAUSED\n");
2087 fflush(stdout);
2088 } 2087 }
2089 #ifdef HAVE_NEW_GUI 2088 #ifdef HAVE_NEW_GUI
2090 if (use_gui) 2089 if (use_gui)
2091 guiGetEvent(guiCEvent, (char *)guiSetPause); 2090 guiGetEvent(guiCEvent, (char *)guiSetPause);
2092 #endif 2091 #endif
3071 } 3070 }
3072 } 3071 }
3073 3072
3074 } 3073 }
3075 3074
3076 fflush(stdout);
3077
3078 if(!mpctx->sh_video && !mpctx->sh_audio){ 3075 if(!mpctx->sh_video && !mpctx->sh_audio){
3079 mp_msg(MSGT_CPLAYER,MSGL_FATAL, MSGTR_NoStreamFound); 3076 mp_msg(MSGT_CPLAYER,MSGL_FATAL, MSGTR_NoStreamFound);
3080 #ifdef HAS_DVBIN_SUPPORT 3077 #ifdef HAS_DVBIN_SUPPORT
3081 if((mpctx->stream->type == STREAMTYPE_DVB) && mpctx->stream->priv) 3078 if((mpctx->stream->type == STREAMTYPE_DVB) && mpctx->stream->priv)
3082 { 3079 {
3226 } 3223 }
3227 3224
3228 3225
3229 // Disable the term OSD in verbose mode 3226 // Disable the term OSD in verbose mode
3230 if(verbose) term_osd = 0; 3227 if(verbose) term_osd = 0;
3231 fflush(stdout);
3232 3228
3233 { 3229 {
3234 //int frame_corr_num=0; // 3230 //int frame_corr_num=0; //
3235 //float v_frame=0; // Video 3231 //float v_frame=0; // Video
3236 float time_frame=0; // Timer 3232 float time_frame=0; // Timer
3304 //==================== START PLAYING ======================= 3300 //==================== START PLAYING =======================
3305 3301
3306 if(loop_times>1) loop_times--; else 3302 if(loop_times>1) loop_times--; else
3307 if(loop_times==1) loop_times = -1; 3303 if(loop_times==1) loop_times = -1;
3308 3304
3309 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_StartPlaying);fflush(stdout); 3305 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_StartPlaying);
3310 3306
3311 total_time_usage_start=GetTimer(); 3307 total_time_usage_start=GetTimer();
3312 audio_time_usage=0; video_time_usage=0; vout_time_usage=0; 3308 audio_time_usage=0; video_time_usage=0; vout_time_usage=0;
3313 total_frame_cnt=0; drop_frame_cnt=0; // fix for multifile fps benchmark 3309 total_frame_cnt=0; drop_frame_cnt=0; // fix for multifile fps benchmark
3314 play_n_frames=play_n_frames_mf; 3310 play_n_frames=play_n_frames_mf;
3537 /* FIXME there should be real seeking for vobsub */ 3533 /* FIXME there should be real seeking for vobsub */
3538 if(mpctx->sh_video) mpctx->sh_video->pts=mpctx->d_video->pts; 3534 if(mpctx->sh_video) mpctx->sh_video->pts=mpctx->d_video->pts;
3539 if (vo_vobsub) 3535 if (vo_vobsub)
3540 //vobsub_reset(vo_vobsub); 3536 //vobsub_reset(vo_vobsub);
3541 vobsub_seek(vo_vobsub,mpctx->sh_video->pts); 3537 vobsub_seek(vo_vobsub,mpctx->sh_video->pts);
3542 fflush(stdout);
3543 3538
3544 if(mpctx->sh_video){ 3539 if(mpctx->sh_video){
3545 current_module="seek_video_reset"; 3540 current_module="seek_video_reset";
3546 resync_video_stream(mpctx->sh_video); 3541 resync_video_stream(mpctx->sh_video);
3547 if(vo_config_count) mpctx->video_out->control(VOCTRL_RESET,NULL); 3542 if(vo_config_count) mpctx->video_out->control(VOCTRL_RESET,NULL);