diff options
author | Dudemanguy <random342@airmail.cc> | 2024-05-02 11:50:21 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-05-02 11:51:31 -0500 |
commit | 06b62de2d1ff9478823c218ed3bc2093ad891481 (patch) | |
tree | 6998b58e0cc98da9528df4be16cc2c58254bab52 | |
parent | 57d26935c0525585482748b7236b60fe83d3f044 (diff) | |
download | mpv-examples-06b62de2d1ff9478823c218ed3bc2093ad891481.tar.bz2 mpv-examples-06b62de2d1ff9478823c218ed3bc2093ad891481.tar.xz |
sdl: stop using removed mpv_detach_destroy API
This was removed years ago* and deprecated long before that. Use
mpv_destroy instead so it actually builds.
*: https://github.com/mpv-player/mpv/commit/632059816adde518c67f6606e3cfdef5bec18b52
-rw-r--r-- | libmpv/sdl/main.c | 2 | ||||
-rw-r--r-- | libmpv/sdl/main_sw.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libmpv/sdl/main.c b/libmpv/sdl/main.c index e45bb99..8f1a4a3 100644 --- a/libmpv/sdl/main.c +++ b/libmpv/sdl/main.c @@ -201,7 +201,7 @@ done: // is still running, the video track will be deselected. mpv_render_context_free(mpv_gl); - mpv_detach_destroy(mpv); + mpv_destroy(mpv); printf("properly terminated\n"); return 0; diff --git a/libmpv/sdl/main_sw.c b/libmpv/sdl/main_sw.c index 588223b..36615fd 100644 --- a/libmpv/sdl/main_sw.c +++ b/libmpv/sdl/main_sw.c @@ -195,7 +195,7 @@ done: // is still running, the video track will be deselected. mpv_render_context_free(mpv_rd); - mpv_detach_destroy(mpv); + mpv_destroy(mpv); printf("properly terminated\n"); return 0; |