Skip to content

Commit

Permalink
validate: use real_main instead of main in run_test_from_file
Browse files Browse the repository at this point in the history
  • Loading branch information
cdammanintopix authored and GStreamer Marge Bot committed Oct 23, 2024
1 parent 0738311 commit 339e6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subprojects/gst-devtools/validate/tools/gst-validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ _register_playbin_actions (void)
/* *INDENT-ON* */
}

int main (int argc, gchar ** argv);
static int real_main (int argc, gchar ** argv);

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

ret = main (argc, argv);
ret = real_main (argc, argv);

g_strfreev (args);
g_free (argv);
Expand Down

0 comments on commit 339e6e0

Please sign in to comment.