GstValidateRunner

GstValidateRunner — Class that runs Gst Validate tests for a pipeline

Functions

Signals

void report-added Run Last
void stopping Run Last

Types and Values

Object Hierarchy

    GObject
    ╰── GstValidateRunner

Description

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

Functions

gst_validate_runner_new ()

GstValidateRunner *
gst_validate_runner_new (void);

Create a new GstValidateRunner

Returns

A newly created GstValidateRunner


gst_validate_runner_get_reports_count ()

guint
gst_validate_runner_get_reports_count (GstValidateRunner *runner);

Get the number of reports present in the runner:

Parameters

runner

The $GstValidateRunner to get the number of report from

 

Returns

The number of report present in the runner.


gst_validate_runner_printf ()

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.

Parameters

runner

The GstValidateRunner to print all the reports for

 

Returns

0 if no critical error has been found and 18 if a critical error has been detected. That return value is usually to be used as exit code of the application.

Types and Values

struct GstValidateRunner

struct GstValidateRunner;

GStreamer Validate Runner class.

Class that manages a Validate test run for some pipeline


struct GstValidateRunnerClass

struct GstValidateRunnerClass {
  GObjectClass parent_class;
};

GStreamer Validate Runner object class.

Members

GObjectClass parent_class;

parent

 

Signal Details

The “report-added” signal

void
user_function (GstValidateRunner *gstvalidaterunner,
               GstValidateReport *arg1,
               gpointer           user_data)

Flags: Run Last


The “stopping” signal

void
user_function (GstValidateRunner *gstvalidaterunner,
               gpointer           user_data)

Flags: Run Last