diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-03 16:57:16 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-03 16:57:16 +0000 |
commit | 58054ed4a0560997ebfebd5f05c815c0bd3b8a7e (patch) | |
tree | 4331252d7ef3ad6107378d82c7ed1725259a26c0 /mencoder.c | |
parent | 12ff2d26443daa2f085536e44119a68107384ec3 (diff) | |
download | mpv-58054ed4a0560997ebfebd5f05c815c0bd3b8a7e.tar.bz2 mpv-58054ed4a0560997ebfebd5f05c815c0bd3b8a7e.tar.xz |
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
Diffstat (limited to 'mencoder.c')
-rw-r--r-- | mencoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mencoder.c b/mencoder.c index 774a14db4a..f4df17fdea 100644 --- a/mencoder.c +++ b/mencoder.c @@ -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; |