summaryrefslogtreecommitdiff
path: root/ext/openjpeg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openjpeg')
-rw-r--r--ext/openjpeg/gstopenjpegdec.c8
-rw-r--r--ext/openjpeg/gstopenjpegenc.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/ext/openjpeg/gstopenjpegdec.c b/ext/openjpeg/gstopenjpegdec.c
index 112b3abab..fdccc51b0 100644
--- a/ext/openjpeg/gstopenjpegdec.c
+++ b/ext/openjpeg/gstopenjpegdec.c
@@ -79,10 +79,10 @@ gst_openjpeg_dec_class_init (GstOpenJPEGDecClass * klass)
element_class = (GstElementClass *) klass;
video_decoder_class = (GstVideoDecoderClass *) klass;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_openjpeg_dec_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_openjpeg_dec_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_openjpeg_dec_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_openjpeg_dec_sink_template);
gst_element_class_set_static_metadata (element_class,
"OpenJPEG JPEG2000 decoder",
diff --git a/ext/openjpeg/gstopenjpegenc.c b/ext/openjpeg/gstopenjpegenc.c
index 7ccbf119d..fe5764dd2 100644
--- a/ext/openjpeg/gstopenjpegenc.c
+++ b/ext/openjpeg/gstopenjpegenc.c
@@ -177,10 +177,10 @@ gst_openjpeg_enc_class_init (GstOpenJPEGEncClass * klass)
"Tile Height", 0, G_MAXINT, DEFAULT_TILE_HEIGHT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_openjpeg_enc_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_openjpeg_enc_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_openjpeg_enc_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_openjpeg_enc_sink_template);
gst_element_class_set_static_metadata (element_class,
"OpenJPEG JPEG2000 encoder",