Top | ![]() |
![]() |
![]() |
![]() |
Allows you to test a pipeline within GstValidate. It is the object where all issue reporting is done.
In the tools using GstValidate the only minimal code to be able to monitor your pipelines is:
1 2 3 4 5 6 7 8 9 10 11 |
GstPipeline *pipeline = gst_pipeline_new ("monitored-pipeline"); GstValidateRunner *runner = gst_validate_runner_new (); GstValidateMonitor *monitor = gst_validate_monitor_factory_create ( GST_OBJECT (pipeline), runner, NULL); // Run the pipeline and do whatever you want with it // In that same order gst_object_unref (pipeline); gst_object_unref (runner); gst_object_unref (monitor); |
GstValidateRunner *
gst_validate_runner_new (void
);
Create a new GstValidateRunner
guint
gst_validate_runner_get_reports_count (GstValidateRunner *runner
);
Get the number of reports present in the runner:
int
gst_validate_runner_printf (GstValidateRunner *runner
);
Prints all the report on the terminal or on wherever set in the GST_VALIDATE_FILE env variable.
struct GstValidateRunner;
GStreamer Validate Runner class.
Class that manages a Validate test run for some pipeline
“params”
property“params” gchar *
Extra configuration parameters.
Flags: Read / Write / Construct
Default value: NULL
“report-added”
signalvoid user_function (GstValidateRunner *gstvalidaterunner, GstValidateReport *arg1, gpointer user_data)
Flags: Run Last
“stopping”
signalvoid user_function (GstValidateRunner *gstvalidaterunner, gpointer user_data)
Flags: Run Last