mirror of https://github.com/mpv-player/mpv
Better mark variables that are changed by the signal handler as volatile
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26321 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
12ff2d2644
commit
58054ed4a0
|
@ -345,8 +345,8 @@ static int dec_audio(sh_audio_t *sh_audio,unsigned char* buffer,int total){
|
|||
// so audio can be cut correctly. -1 if there is no limit.
|
||||
static float stop_time(demuxer_t* demuxer, muxer_stream_t* mux_v);
|
||||
|
||||
static int at_eof=0;
|
||||
static int interrupted=0;
|
||||
static volatile int at_eof=0;
|
||||
static volatile int interrupted=0;
|
||||
|
||||
static void exit_sighandler(int x){
|
||||
at_eof=1;
|
||||
|
|
Loading…
Reference in New Issue