# HG changeset patch # User reimar # Date 1207241836 0 # Node ID aa0c534db45552100e5272a59c83a48050641909 # Parent 6e53dfe385949d9ca184e30bf8eeebe633e1ed60 Better mark variables that are changed by the signal handler as volatile diff -r 6e53dfe38594 -r aa0c534db455 mencoder.c --- 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;