changeset 27060:351c7a56708e

Try harder to honour CTRL+C etc. during dumpstream
author reimar
date Mon, 16 Jun 2008 18:42:58 +0000
parents 3771c9d8daf6
children 0080f5b9d94f
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Jun 16 17:33:55 2008 +0000
+++ b/mplayer.c	Mon Jun 16 18:42:58 2008 +0000
@@ -3179,7 +3179,7 @@
     int chapter = dvd_chapter - 1;
     stream_control(mpctx->stream, STREAM_CTRL_SEEK_TO_CHAPTER, &chapter);
   }
-  while(!mpctx->stream->eof){
+  while(!mpctx->stream->eof && !async_quit_request){
       len=stream_read(mpctx->stream,buf,4096);
       if(len>0) {
         if(fwrite(buf,len,1,f) != 1) {