summaryrefslogtreecommitdiff
path: root/ext/openh264/gstopenh264enc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openh264/gstopenh264enc.cpp')
-rw-r--r--ext/openh264/gstopenh264enc.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp
index 4461ae2ed..bdd4e5130 100644
--- a/ext/openh264/gstopenh264enc.cpp
+++ b/ext/openh264/gstopenh264enc.cpp
@@ -275,10 +275,8 @@ gst_openh264enc_class_init (GstOpenh264EncClass * klass)
/* Setting up pads and setting metadata should be moved to
base_class_init if you intend to subclass this class. */
- gst_element_class_add_pad_template (GST_ELEMENT_CLASS (klass),
- gst_static_pad_template_get (&gst_openh264enc_src_template));
- gst_element_class_add_pad_template (GST_ELEMENT_CLASS (klass),
- gst_static_pad_template_get (&gst_openh264enc_sink_template));
+ gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass), &gst_openh264enc_src_template);
+ gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass), &gst_openh264enc_sink_template);
gst_element_class_set_static_metadata (GST_ELEMENT_CLASS (klass),
"OpenH264 video encoder", "Encoder/Video", "OpenH264 video encoder",