Mercurial > mplayer.hg
diff mencoder.c @ 26289:aa0c534db455
Better mark variables that are changed by the signal handler as volatile
author | reimar |
---|---|
date | Thu, 03 Apr 2008 16:57:16 +0000 |
parents | 65ad20416dd7 |
children | 7a36d5941fd8 |
line wrap: on
line diff
--- a/mencoder.c Wed Apr 02 01:01:22 2008 +0000 +++ b/mencoder.c Thu Apr 03 16:57:16 2008 +0000 @@ -345,8 +345,8 @@ // 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;