summaryrefslogtreecommitdiff
path: root/gst/videocrop/gstvideocrop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/videocrop/gstvideocrop.c')
-rw-r--r--gst/videocrop/gstvideocrop.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c
index 7100bee..04b6e61 100644
--- a/gst/videocrop/gstvideocrop.c
+++ b/gst/videocrop/gstvideocrop.c
@@ -147,10 +147,9 @@ gst_video_crop_base_init (gpointer g_class)
"Crops video into a user-defined region",
"Tim-Philipp Müller <tim centricular net>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &sink_template);
+ gst_element_class_add_static_pad_template (element_class, &src_template);
}
static gboolean