fftools/ffplay: annotate intentional switch fall-throughs

Both fall-throughs are deliberate: SDL_MOUSEBUTTONDOWN shares the cursor
and seek handling of SDL_MOUSEMOTION, and a resize also needs the refresh
done by SDL_WINDOWEVENT_EXPOSED. Silences -Wimplicit-fallthrough.

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow committed 2026-08-10 19:52:19 +02:00
1 parent c22a84c655
commit d3fbc13429
1 file changed
+3
+3
View File
@@ -30,6 +30,7 @@
#include <signal.h>
#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/mathematics.h"
@@ -3576,6 +3577,7 @@ static void event_loop(VideoState *cur_stream)
last_mouse_left_click = av_gettime_relative();
}
}
av_fallthrough;
case SDL_MOUSEMOTION:
if (cursor_hidden) {
SDL_ShowCursor(1);
@@ -3627,6 +3629,7 @@ static void event_loop(VideoState *cur_stream)
}
if (vk_renderer)
vk_renderer_resize(vk_renderer, screen_width, screen_height);
av_fallthrough;
case SDL_WINDOWEVENT_EXPOSED:
cur_stream->force_refresh = 1;
}