*/
#include "gst-qa-bin-monitor.h"
+#include "gst-qa-monitor-factory.h"
/**
* SECTION:gst-qa-bin-monitor
gst_qa_bin_monitor_wrap_element (GstQaBinMonitor * monitor,
GstElement * element)
{
+ GstQaElementMonitor *element_monitor;
GST_DEBUG_OBJECT (monitor, "Wrapping element %s", GST_ELEMENT_NAME (element));
- /* TODO */
+
+ element_monitor = gst_qa_monitor_factory_create (element);
+ g_return_if_fail (element_monitor != NULL);
+
+ GST_QA_MONITOR_LOCK (monitor);
+ monitor->element_monitors = g_list_prepend (monitor->element_monitors,
+ element_monitor);
+ GST_QA_MONITOR_UNLOCK (monitor);
}
static void
*/
#include "gst-qa-element-monitor.h"
+#include "gst-qa-pad-monitor.h"
/**
* SECTION:gst-qa-element-monitor
static void
gst_qa_element_monitor_wrap_pad (GstQaElementMonitor * monitor, GstPad * pad)
{
+ GstQaPadMonitor *pad_monitor;
GST_DEBUG_OBJECT (monitor, "Wrapping pad %s:%s", GST_DEBUG_PAD_NAME (pad));
- /* TODO */
+
+ pad_monitor = gst_qa_pad_monitor_new (pad);
+ g_return_if_fail (pad_monitor != NULL);
+
+ GST_QA_MONITOR_LOCK (monitor);
+ monitor->pad_monitors = g_list_prepend (monitor->pad_monitors, pad_monitor);
+ GST_QA_MONITOR_UNLOCK (monitor);
}
static void