summaryrefslogtreecommitdiff
path: root/gst/debugutils/gstdebugspy.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/debugutils/gstdebugspy.c')
-rw-r--r--gst/debugutils/gstdebugspy.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/debugutils/gstdebugspy.c b/gst/debugutils/gstdebugspy.c
index 19e7cf24a..fed2db180 100644
--- a/gst/debugutils/gstdebugspy.c
+++ b/gst/debugutils/gstdebugspy.c
@@ -139,10 +139,8 @@ gst_debug_spy_class_init (GstDebugSpyClass * klass)
"DebugSpy provides information on buffers with bus messages",
"Guillaume Emont <gemont@igalia.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_factory));
+ gst_element_class_add_static_pad_template (element_class, &src_factory);
+ gst_element_class_add_static_pad_template (element_class, &sink_factory);
GST_DEBUG_CATEGORY_INIT (gst_debug_spy_debug, "debugspy", 0, "debugspy");
}