Ticket #1383: mplayer-async-quit.diff

File mplayer-async-quit.diff, 686 bytes (added by Ristioja@…, 18 years ago)

mplayer-async-quit.diff

  • mplayer.c

    old new  
    25352535
    25362536//float a_frame=0;    // Audio
    25372537
     2538// Make sure the asynchronous quit request is not set.
     2539async_quit_request = 0;
     2540
    25382541int i;
    25392542
    25402543int gui_no_filename=0;
     
    31783181    mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_ErrorWritingFile,stream_dump_name);
    31793182    exit_player(MSGTR_Exit_error);
    31803183  }
     3184
     3185  // Exit with failure in case of an asynchronous quit request (set in signal handler)
     3186  if (async_quit_request) {
     3187    exit_player(MSGTR_Exit_error);
     3188  }
     3189
    31813190  mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_CoreDumped);
    31823191  exit_player_with_rc(MSGTR_Exit_eof, 0);
    31833192}