test/libmpv_common: wait for all clients and player to be destroyed

mpv_destroy() only detaches the client, while leaving the player alone.
Since this is exit cleanup, we should just wait and quit whole player.
This commit is contained in:
Kacper Michajłow committed 2026-05-03 20:26:40 +02:00
1 parent 948c86d24c
commit 333857403f
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ static inline void fail(const char *fmt, ...)
static inline void exit_cleanup(void)
{
mpv_destroy(ctx);
mpv_terminate_destroy(ctx);
ctx = NULL;
}