File input-utils-on_exit.patch of Package input-utils
--- ffmvforce.c
+++ ffmvforce.c
@@ -112,6 +112,11 @@
first = 0;
}
+static void on_exit_func(int status, void *arg)
+{
+ SDL_Quit();
+}
+
int main(int argc, char** argv)
{
SDL_Surface* screen;
@@ -147,7 +152,7 @@
fprintf(stderr, "Could not initialize SDL: %s\n", SDL_GetError());
exit(1);
}
- on_exit(SDL_Quit, NULL);
+ on_exit(on_exit_func, NULL);
screen = SDL_SetVideoMode(WIN_W, WIN_H, 0, SDL_SWSURFACE);
if (screen == NULL) {
fprintf(stderr, "Could not set video mode: %s\n", SDL_GetError());