Mercurial > mplayer.hg
changeset 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 | 6e53dfe38594 |
children | 88fc5c0cb41d |
files | mencoder.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;