validate: Don't deinit too early

If we are going to use the validate functions ... do that *before*
deinit'ing.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3390>
This commit is contained in:
Edward Hervey 2022-11-11 14:19:15 +01:00 committed by Edward Hervey
parent eebb794a4f
commit f8f3615585

View file

@ -177,11 +177,12 @@ out:
} }
if (runner) if (runner)
gst_object_unref (runner); gst_object_unref (runner);
gst_validate_deinit ();
gst_deinit ();
gst_validate_printf (NULL, "\n=======> Test %s (Return value: %i)\n\n", gst_validate_printf (NULL, "\n=======> Test %s (Return value: %i)\n\n",
ret == 0 ? "PASSED" : "FAILED", ret); ret == 0 ? "PASSED" : "FAILED", ret);
gst_validate_deinit ();
gst_deinit ();
return ret; return ret;
} }