diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-07-20 22:08:24 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-07-22 15:58:01 -0400 |
commit | 8f1301390de7662292dd18cc6dd863062953a777 (patch) | |
tree | 8a6ede01cf4a08730644fabb9bd73c2180d606ee /ext/mimic | |
parent | a99348170e835662b51182414fbf25ad589f9e15 (diff) | |
download | gst-plugins-bad-8f1301390de7662292dd18cc6dd863062953a777.tar.gz gst-plugins-bad-8f1301390de7662292dd18cc6dd863062953a777.tar.bz2 gst-plugins-bad-8f1301390de7662292dd18cc6dd863062953a777.zip |
mimenc: Use gst_pad_new_from_static_template
Prevents leak found by valgrind
Diffstat (limited to 'ext/mimic')
-rw-r--r-- | ext/mimic/gstmimenc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c index 8ab76222..4a65b9fd 100644 --- a/ext/mimic/gstmimenc.c +++ b/ext/mimic/gstmimenc.c @@ -142,17 +142,13 @@ gst_mimenc_class_init (GstMimEncClass * klass) static void gst_mimenc_init (GstMimEnc * mimenc, GstMimEncClass * klass) { - mimenc->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get (&sink_factory), - "sink"); + mimenc->sinkpad = gst_pad_new_from_static_template (&sink_factory, "sink"); gst_element_add_pad (GST_ELEMENT (mimenc), mimenc->sinkpad); gst_pad_set_setcaps_function (mimenc->sinkpad, gst_mimenc_setcaps); gst_pad_set_chain_function (mimenc->sinkpad, gst_mimenc_chain); gst_pad_set_event_function (mimenc->sinkpad, gst_mimenc_event); - mimenc->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get (&src_factory), - "src"); + mimenc->srcpad = gst_pad_new_from_static_template (&src_factory, "src"); gst_element_add_pad (GST_ELEMENT (mimenc), mimenc->srcpad); mimenc->enc = NULL; |