validate: Avoid depending on not stable APIs

And cleanup includes
This commit is contained in:
Thibault Saunier 2014-11-21 19:53:52 +01:00
parent 452ebc1965
commit c7cceae128
2 changed files with 1 additions and 7 deletions

View file

@ -25,9 +25,9 @@
#include <ges/ges.h>
#ifdef HAVE_GST_VALIDATE
#include <gst/validate/validate.h>
#include <gst/validate/gst-validate-scenario.h>
#include <gst/validate/gst-validate-utils.h>
#include <gst/validate/validate.h>
#define MONITOR_ON_PIPELINE "validate-monitor"
#define RUNNER_ON_PIPELINE "runner-monitor"

View file

@ -47,7 +47,6 @@ gboolean
ges_validate_activate (GstPipeline * pipeline, const gchar * scenario,
gboolean * needs_setting_state)
{
GstValidateOverride *o;
GstValidateRunner *runner = NULL;
GstValidateMonitor *monitor = NULL;
@ -61,11 +60,6 @@ ges_validate_activate (GstPipeline * pipeline, const gchar * scenario,
}
}
o = gst_validate_override_new ();
gst_validate_override_change_severity (o,
EVENT_SEEK_RESULT_POSITION_WRONG, GST_VALIDATE_REPORT_LEVEL_WARNING);
gst_validate_override_register_by_name ("scenarios", o);
runner = gst_validate_runner_new ();
g_signal_connect (runner, "report-added",
G_CALLBACK (_validate_report_added_cb), pipeline);