From d246c18ea6dca4dbdc92aec6ae4e3e038999a709 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 14 Jun 2012 10:19:06 +0200 Subject: 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. --- avplay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'avplay.c') 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); } -- cgit v1.2.3