From 58054ed4a0560997ebfebd5f05c815c0bd3b8a7e Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 3 Apr 2008 16:57:16 +0000 Subject: 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 --- mencoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mencoder.c') 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; -- cgit v1.2.3