aboutsummaryrefslogtreecommitdiffstats
path: root/avplay.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-06-14 10:19:06 +0200
committerDiego Biurrun <diego@biurrun.de>2012-06-14 23:36:04 +0200
commitd246c18ea6dca4dbdc92aec6ae4e3e038999a709 (patch)
tree021d829907a0dac6bdc37bfa0779bedf71f4e75b /avplay.c
parent7dc747f50b0adeaf2bcf6413e291dc4bffa54f9a (diff)
downloadffmpeg-d246c18ea6dca4dbdc92aec6ae4e3e038999a709.tar.gz
Avoid C99 variable declarations within for statements.
We generally do not declare variables within for statements and there are compilers that choke on such constructs.
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/avplay.c b/avplay.c
index c01e446ab0..e9389ffe65 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2608,13 +2608,13 @@ static void stream_cycle_channel(VideoState *is, int codec_type)
static void toggle_full_screen(void)
{
- is_full_screen = !is_full_screen;
#if defined(__APPLE__) && SDL_VERSION_ATLEAST(1, 2, 14)
/* OS X needs to empty the picture_queue */
- for (int i = 0; i < VIDEO_PICTURE_QUEUE_SIZE; i++) {
+ int i;
+ for (i = 0; i < VIDEO_PICTURE_QUEUE_SIZE; i++)
cur_stream->pictq[i].reallocate = 1;
- }
#endif
+ is_full_screen = !is_full_screen;
video_open(cur_stream);
}