player/main: revert msg uninit order changes

msg must be the last module to uninit since pretty much
everything else uses logging.

This reverts commit f92d5da89c.
This reverts commit c1282d4d43.
This commit is contained in:
nanahi authored and Kacper Michajłow committed 2024-09-15 17:03:33 +02:00
1 parent 429e379c7f
commit 42b40d03f1
1 file changed
+3 -4
+3 -4
View File
@@ -187,10 +187,6 @@ void mp_destroy(struct MPContext *mpctx)
cocoa_set_input_context(NULL);
#endif
uninit_libav(mpctx->global);
mp_msg_uninit(mpctx->global);
if (cas_terminal_owner(mpctx, mpctx)) {
terminal_uninit();
cas_terminal_owner(mpctx, NULL);
@@ -198,6 +194,9 @@ void mp_destroy(struct MPContext *mpctx)
mp_input_uninit(mpctx->input);
uninit_libav(mpctx->global);
mp_msg_uninit(mpctx->global);
assert(!mpctx->num_abort_list);
talloc_free(mpctx->abort_list);
mp_mutex_destroy(&mpctx->abort_lock);