validate: use real_main instead of main in run_test_from_file

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7704>
This commit is contained in:
Corentin Damman 2024-10-21 10:16:14 +00:00 committed by GStreamer Marge Bot
parent 073831128b
commit 339e6e0069

View file

@ -304,7 +304,7 @@ _register_playbin_actions (void)
/* *INDENT-ON* */ /* *INDENT-ON* */
} }
int main (int argc, gchar ** argv); static int real_main (int argc, gchar ** argv);
static int static int
run_test_from_file (gchar * testfile, gboolean use_fakesinks) run_test_from_file (gchar * testfile, gboolean use_fakesinks)
@ -325,7 +325,7 @@ run_test_from_file (gchar * testfile, gboolean use_fakesinks)
argv[0] = (gchar *) "gst-validate-" GST_API_VERSION; argv[0] = (gchar *) "gst-validate-" GST_API_VERSION;
memcpy (&argv[1], args, sizeof (char *) * (argc)); memcpy (&argv[1], args, sizeof (char *) * (argc));
ret = main (argc, argv); ret = real_main (argc, argv);
g_strfreev (args); g_strfreev (args);
g_free (argv); g_free (argv);