summaryrefslogtreecommitdiff
path: root/gst/videobox
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 12:58:44 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 13:30:27 +0000
commitc0e101e93fa178fb3cb62bed64117c005583b032 (patch)
tree3db76b46e901357dba441789e899f64321f474d7 /gst/videobox
parenta2337b8af45cb5e8c091ff0e1c3ef4b6cc7b20a3 (diff)
various: fix pad template leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Diffstat (limited to 'gst/videobox')
-rw-r--r--gst/videobox/gstvideobox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c
index f9854882f..691c5f123 100644
--- a/gst/videobox/gstvideobox.c
+++ b/gst/videobox/gstvideobox.c
@@ -2466,10 +2466,10 @@ gst_video_box_base_init (gpointer g_class)
"Resizes a video by adding borders or cropping",
"Wim Taymans <wim@fluendo.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_video_box_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_video_box_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_video_box_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_video_box_src_template);
}
static void