diff options
author | Edward Hervey <bilboed@bilboed.com> | 2015-11-23 17:44:27 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2015-11-23 17:44:27 +0100 |
commit | 01f010b15dfc69840ce49105a5ade809cbd3605a (patch) | |
tree | 64da6640ddb027f9ba3adf177c1978c61e4fbe17 | |
parent | 581b0cfced568e37c8ced0f3e28311f6579ea4e8 (diff) |
scenario: Set the default action execution interval to 10ms
Having a default value of 0 meant that a g_idle_add loop was constantly
running, causing each test to use 100% cpu.
This is no longer required. Using a 10ms interval brings down cpu usage
to a sane value
-rw-r--r-- | validate/gst/validate/gst-validate-scenario.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 8886ce1..1236f5b 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -31,8 +31,8 @@ * Possible configurations (see #GST_VALIDATE_CONFIG): * * scenario-action-execution-interval: Sets the interval in * milliseconds (1/1000ths of a second), between which actions - * will be executed, setting it to 0 means "execute in idle" - * (which is the default). + * will be executed, setting it to 0 means "execute in idle". + * The default value is 10ms. */ #ifdef HAVE_CONFIG_H @@ -2513,6 +2513,7 @@ gst_validate_scenario_init (GstValidateScenario * scenario) priv->seek_pos_tol = DEFAULT_SEEK_TOLERANCE; priv->segment_start = 0; priv->segment_stop = GST_CLOCK_TIME_NONE; + priv->action_execution_interval = 10; g_mutex_init (&priv->lock); } |