comparison mplayer.c @ 27060:351c7a56708e

Try harder to honour CTRL+C etc. during dumpstream
author reimar
date Mon, 16 Jun 2008 18:42:58 +0000
parents f00e76437efe
children 2c0abab6b9b7
comparison
equal deleted inserted replaced
27059:3771c9d8daf6 27060:351c7a56708e
3177 } 3177 }
3178 if (dvd_chapter > 1) { 3178 if (dvd_chapter > 1) {
3179 int chapter = dvd_chapter - 1; 3179 int chapter = dvd_chapter - 1;
3180 stream_control(mpctx->stream, STREAM_CTRL_SEEK_TO_CHAPTER, &chapter); 3180 stream_control(mpctx->stream, STREAM_CTRL_SEEK_TO_CHAPTER, &chapter);
3181 } 3181 }
3182 while(!mpctx->stream->eof){ 3182 while(!mpctx->stream->eof && !async_quit_request){
3183 len=stream_read(mpctx->stream,buf,4096); 3183 len=stream_read(mpctx->stream,buf,4096);
3184 if(len>0) { 3184 if(len>0) {
3185 if(fwrite(buf,len,1,f) != 1) { 3185 if(fwrite(buf,len,1,f) != 1) {
3186 mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_ErrorWritingFile,stream_dump_name); 3186 mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_ErrorWritingFile,stream_dump_name);
3187 exit_player(MSGTR_Exit_error); 3187 exit_player(MSGTR_Exit_error);