Skip to content

Commit 332ecd3

Browse files
cdammanintopixaslobodeniuk
authored andcommitted
validate: use real_main instead of main in run_test_from_file
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7704>
1 parent a50555d commit 332ecd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subprojects/gst-devtools/validate/tools/gst-validate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ _register_playbin_actions (void)
304304
/* *INDENT-ON* */
305305
}
306306

307-
int main (int argc, gchar ** argv);
307+
static int real_main (int argc, gchar ** argv);
308308

309309
static int
310310
run_test_from_file (gchar * testfile, gboolean use_fakesinks)
@@ -325,7 +325,7 @@ run_test_from_file (gchar * testfile, gboolean use_fakesinks)
325325
argv[0] = (gchar *) "gst-validate-" GST_API_VERSION;
326326
memcpy (&argv[1], args, sizeof (char *) * (argc));
327327

328-
ret = main (argc, argv);
328+
ret = real_main (argc, argv);
329329

330330
g_strfreev (args);
331331
g_free (argv);

0 commit comments

Comments
 (0)