endif
endforeach
- test('simple_playback_test', ges_launch, env: env, args: ['+test-clip', 'blue', 'd=0.1', '--disable-validate', '--videosink=fakevideosink', '--audiosink=fakeaudiosink'])
+ test('simple_playback_test', ges_launch, env: env, args: ['+test-clip', 'blue', 'd=0.1', '--videosink=fakevideosink', '--audiosink=fakeaudiosink'])
endif
if build_gir
"scenarios, " "and --inspect-action-type.",
"<scenario_name>"
},
- {"disable-validate", 'n', 0, G_OPTION_ARG_NONE, &opts->disable_validate,
- "Do not run inside GstValidate.",
- "<scenario_name>"
+ {"enable-validate", 0, 0, G_OPTION_ARG_NONE, &opts->enable_validate,
+ "Run inside GstValidate.", NULL,
},
#endif
{
G_OPTION_ARG_NONE,
&opts->embed_nesteds,
"Embed nested timelines when saving.",
+ NULL,
},
{"no-interactive", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE,
&opts->interactive,
if (err)
g_propagate_error (error, err);
+ opts->enable_validate |= opts->testfile || opts->scenario
+ || g_getenv ("GST_VALIDATE_SCENARIO");
+
if (owns_ctx) {
g_option_context_free (ctx);
/* sinks passed in the command line are preferred. */
GstValidateRunner *runner = NULL;
GstValidateMonitor *monitor = NULL;
- if (opts->disable_validate) {
- if (opts->scenario)
- g_error ("Trying to run scenario: %s but validate is deactivated",
- opts->scenario);
+ if (!opts->enable_validate) {
opts->needs_set_state = TRUE;
g_object_set_data (G_OBJECT (pipeline), "pposition-id",
GUINT_TO_POINTER (g_timeout_add (200,