diff options
Diffstat (limited to 'gst/sdi')
-rw-r--r-- | gst/sdi/gstsdidemux.c | 9 | ||||
-rw-r--r-- | gst/sdi/gstsdimux.c | 8 |
2 files changed, 8 insertions, 9 deletions
diff --git a/gst/sdi/gstsdidemux.c b/gst/sdi/gstsdidemux.c index 7af936bdd..968525aec 100644 --- a/gst/sdi/gstsdidemux.c +++ b/gst/sdi/gstsdidemux.c @@ -105,10 +105,10 @@ gst_sdi_demux_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_sdi_demux_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_sdi_demux_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_sdi_demux_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_sdi_demux_sink_template); gst_element_class_set_details_simple (element_class, "SDI Demuxer", @@ -364,7 +364,6 @@ gst_sdi_demux_chain (GstPad * pad, GstBuffer * buffer) if (sdidemux->output_buffer == NULL) { gst_sdi_demux_get_output_buffer (sdidemux); } - #if 0 if (sdidemux->offset) { int n; diff --git a/gst/sdi/gstsdimux.c b/gst/sdi/gstsdimux.c index d7d490bd3..02532273a 100644 --- a/gst/sdi/gstsdimux.c +++ b/gst/sdi/gstsdimux.c @@ -108,10 +108,10 @@ gst_sdi_mux_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_sdi_mux_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_sdi_mux_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_sdi_mux_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_sdi_mux_sink_template); gst_element_class_set_details_simple (element_class, "SDI Muxer", "Muxer", |