mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 22:05:58 +00:00
qa-pad-monitor: Properly set target_name with as much info as possible
This commit is contained in:
parent
cb4792a8e5
commit
dd672acf8b
1 changed files with 17 additions and 0 deletions
|
@ -158,6 +158,14 @@ gst_qa_pad_monitor_check_caps_complete (GstQaPadMonitor * monitor,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_parent_set_cb (GstObject * object, GstObject * parent, GstQaMonitor * monitor)
|
||||||
|
{
|
||||||
|
gst_qa_monitor_set_target_name (monitor, g_strdup_printf ("%s:%s",
|
||||||
|
GST_DEBUG_PAD_NAME (object)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_qa_pad_monitor_dispose (GObject * object)
|
gst_qa_pad_monitor_dispose (GObject * object)
|
||||||
{
|
{
|
||||||
|
@ -171,6 +179,10 @@ gst_qa_pad_monitor_dispose (GObject * object)
|
||||||
|
|
||||||
if (monitor->expected_segment)
|
if (monitor->expected_segment)
|
||||||
gst_event_unref (monitor->expected_segment);
|
gst_event_unref (monitor->expected_segment);
|
||||||
|
|
||||||
|
|
||||||
|
g_signal_handlers_disconnect_by_func (pad, (GCallback) _parent_set_cb,
|
||||||
|
monitor);
|
||||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -920,5 +932,10 @@ gst_qa_pad_monitor_do_setup (GstQaMonitor * monitor)
|
||||||
gst_pad_set_getcaps_function (pad, gst_qa_pad_monitor_getcaps_func);
|
gst_pad_set_getcaps_function (pad, gst_qa_pad_monitor_getcaps_func);
|
||||||
gst_pad_set_setcaps_function (pad, gst_qa_pad_monitor_setcaps_func);
|
gst_pad_set_setcaps_function (pad, gst_qa_pad_monitor_setcaps_func);
|
||||||
|
|
||||||
|
gst_qa_monitor_set_target_name (monitor, g_strdup_printf ("%s:%s",
|
||||||
|
GST_DEBUG_PAD_NAME (pad)));
|
||||||
|
|
||||||
|
g_signal_connect (pad, "parent-set", (GCallback) _parent_set_cb, monitor);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue