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:
reimar 2008-04-03 16:57:16 +00:00
parent 12ff2d2644
commit 58054ed4a0
1 changed files with 2 additions and 2 deletions

View File

@ -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;