diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2016-02-27 15:36:28 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-02-28 13:10:07 +0000 |
commit | cf0680017e44f62434ee57c670a66b7dfa0a7746 (patch) | |
tree | 563e66c222aad0ac2fc38352ca13ce65628150f4 /plugins/elements/gstconcat.c | |
parent | fa12d23a17dbd16d4df552da1ca016c53fa038fb (diff) |
elements: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=762778
Diffstat (limited to 'plugins/elements/gstconcat.c')
-rw-r--r-- | plugins/elements/gstconcat.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/plugins/elements/gstconcat.c b/plugins/elements/gstconcat.c index 5397c8e483..5b5b1b8866 100644 --- a/plugins/elements/gstconcat.c +++ b/plugins/elements/gstconcat.c @@ -95,14 +95,12 @@ gst_concat_pad_init (GstConcatPad * self) self->flushing = FALSE; } -static GstStaticPadTemplate concat_sink_template = -GST_STATIC_PAD_TEMPLATE ("sink_%u", +static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink_%u", GST_PAD_SINK, GST_PAD_REQUEST, GST_STATIC_CAPS_ANY); -static GstStaticPadTemplate concat_src_template = -GST_STATIC_PAD_TEMPLATE ("src", +static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS_ANY); @@ -178,10 +176,8 @@ gst_concat_class_init (GstConcatClass * klass) "Concat", "Generic", "Concatenate multiple streams", "Sebastian Dröge <sebastian@centricular.com>"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&concat_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&concat_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); gstelement_class->request_new_pad = GST_DEBUG_FUNCPTR (gst_concat_request_new_pad); @@ -195,7 +191,7 @@ gst_concat_init (GstConcat * self) g_mutex_init (&self->lock); g_cond_init (&self->cond); - self->srcpad = gst_pad_new_from_static_template (&concat_src_template, "src"); + self->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_set_event_function (self->srcpad, GST_DEBUG_FUNCPTR (gst_concat_src_event)); gst_pad_set_query_function (self->srcpad, |