Commit 4f697df8 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

tests: clockstress: perform sanity check on thread number argument

parent 6ede81d1
......@@ -60,6 +60,11 @@ main (gint argc, gchar * argv[])
num_threads = atoi (argv[1]);
if (num_threads <= 0 || num_threads > MAX_THREADS) {
g_print ("number of threads must be between 0 and %d\n", MAX_THREADS);
exit (-2);
}
sysclock = gst_system_clock_obtain ();
for (t = 0; t < num_threads; t++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment