*/
#include "gst-qa-monitor.h"
-#include "gst-qa-reporter.h"
/**
* SECTION:gst-qa-monitor
(GST_OBJECT_NAME (monitor->target)));
break;
case PROP_RUNNER:
- /* we assume the runner is valid as long as this monitor is,
- * no ref taken */
- monitor->runner = g_value_get_object (value);
- gst_qa_reporter_set_runner (GST_QA_REPORTER (monitor), monitor->runner);
+ gst_qa_reporter_set_runner (GST_QA_REPORTER (monitor),
+ g_value_get_object (value));
break;
case PROP_QA_PARENT:
monitor->parent = g_value_get_object (value);
#include <glib-object.h>
#include <gst/gst.h>
#include "gst-qa-report.h"
+#include "gst-qa-reporter.h"
#include "gst-qa-runner.h"
#include "gst-qa-override.h"
#define GST_QA_MONITOR_CLASS_CAST(klass) ((GstQaMonitorClass*)(klass))
#define GST_QA_MONITOR_GET_OBJECT(m) (GST_QA_MONITOR_CAST (m)->target)
-#define GST_QA_MONITOR_GET_RUNNER(m) (GST_QA_MONITOR_CAST (m)->runner)
+#define GST_QA_MONITOR_GET_RUNNER(m) (gst_qa_reporter_get_runner (GST_QA_REPORTER_CAST (m)))
#define GST_QA_MONITOR_GET_PARENT(m) (GST_QA_MONITOR_CAST (m)->parent)
#define GST_QA_MONITOR_LOCK(m) (g_mutex_lock (&GST_QA_MONITOR_CAST(m)->mutex))
#define GST_QA_MONITOR_UNLOCK(m) (g_mutex_unlock (&GST_QA_MONITOR_CAST(m)->mutex))
GstQaMonitor *parent;
- GstQaRunner *runner;
-
GMutex overrides_mutex;
GQueue overrides;
#define GST_QA_REPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_QA_REPORTER, GstQaReporter))
#define GST_IS_QA_REPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_QA_REPORTER))
#define GST_QA_REPORTER_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_QA_REPORTER, GstQaReporterInterface))
+#define GST_QA_REPORTER_CAST(obj) ((GstQaReporter *) obj)
#ifdef G_HAVE_ISO_VARARGS
#define GST_QA_REPORT(m, issue_id, ...) \