[FFmpeg-cvslog] ffmpeg: make q_pressed volatile, it can be changed from signal handlers.

Michael Niedermayer git at videolan.org
Sat Oct 8 19:30:35 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct  8 17:20:17 2011 +0200| [570fb660d6139430cc9141bd8138d68815f4182d] | committer: Michael Niedermayer

ffmpeg: make q_pressed volatile, it can be changed from signal handlers.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=570fb660d6139430cc9141bd8138d68815f4182d
---

 ffmpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 741b74c..5b0610c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -146,7 +146,7 @@ static int audio_volume = 256;
 static int exit_on_error = 0;
 static int using_stdin = 0;
 static int run_as_daemon  = 0;
-static int q_pressed = 0;
+static volatile int q_pressed = 0;
 static int64_t video_size = 0;
 static int64_t audio_size = 0;
 static int64_t extra_size = 0;



More information about the ffmpeg-cvslog mailing list