diff options
author | Diego Biurrun | 2012-06-14 10:19:06 +0200 |
---|---|---|
committer | Diego Biurrun | 2012-06-14 23:36:04 +0200 |
commit | d246c18ea6dca4dbdc92aec6ae4e3e038999a709 (patch) | |
tree | 021d829907a0dac6bdc37bfa0779bedf71f4e75b /avplay.c | |
parent | 7dc747f50b0adeaf2bcf6413e291dc4bffa54f9a (diff) |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |