gst-qa-element-monitor: do not bypass monitor factory

A pad monitor was created directly. Prefer going through the
factory.
This commit is contained in:
Vincent Penquerc'h 2013-07-31 11:12:41 +01:00 committed by Thiago Santos
parent 5356f10644
commit 3a419c3fd8

View file

@ -21,6 +21,7 @@
#include "gst-qa-element-monitor.h"
#include "gst-qa-pad-monitor.h"
#include "gst-qa-monitor-factory.h"
#include <string.h>
/**
@ -182,8 +183,8 @@ gst_qa_element_monitor_wrap_pad (GstQaElementMonitor * monitor, GstPad * pad)
GST_DEBUG_OBJECT (monitor, "Wrapping pad %s:%s", GST_DEBUG_PAD_NAME (pad));
pad_monitor =
gst_qa_pad_monitor_new (pad, GST_QA_MONITOR_GET_RUNNER (monitor),
monitor);
GST_QA_PAD_MONITOR (gst_qa_monitor_factory_create (GST_OBJECT (pad),
GST_QA_MONITOR_GET_RUNNER (monitor), GST_QA_MONITOR (monitor)));
g_return_if_fail (pad_monitor != NULL);
GST_QA_MONITOR_LOCK (monitor);