Skip to content

Commit 3338574

Browse files
committed
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.
1 parent 948c86d commit 3338574

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/libmpv_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static inline void fail(const char *fmt, ...)
5454

5555
static inline void exit_cleanup(void)
5656
{
57-
mpv_destroy(ctx);
57+
mpv_terminate_destroy(ctx);
5858
ctx = NULL;
5959
}
6060

0 commit comments

Comments
 (0)