vaapi: use new gst_element_class_add_static_pad_template()

https://bugzilla.gnome.org/show_bug.cgi?id=763083

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
This commit is contained in:
Vineeth TM 2016-03-04 16:35:11 +09:00 committed by Víctor Manuel Jáquez Leal
parent 5a4540e654
commit 57313f3f70
9 changed files with 32 additions and 34 deletions

View file

@ -1350,8 +1350,8 @@ gst_vaapidecode_class_init (GstVaapiDecodeClass * klass)
gst_element_class_add_pad_template (element_class, pad_template);
/* src pad */
pad_template = gst_static_pad_template_get (&gst_vaapidecode_src_factory);
gst_element_class_add_pad_template (element_class, pad_template);
gst_element_class_add_static_pad_template (element_class,
&gst_vaapidecode_src_factory);
}
static void

View file

@ -264,11 +264,11 @@ gst_vaapi_decode_bin_class_init (GstVaapiDecodeBinClass * klass)
g_object_class_install_properties (gobject_class, PROP_LAST, properties);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapi_decode_bin_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapi_decode_bin_sink_factory);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapi_decode_bin_src_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapi_decode_bin_src_factory);
GST_DEBUG_CATEGORY_INIT (gst_debug_vaapi_decode_bin,
GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC);

View file

@ -405,12 +405,12 @@ gst_vaapiencode_h264_class_init (GstVaapiEncodeH264Class * klass)
GST_PLUGIN_DESC, "Wind Yuan <feng.yuan@intel.com>");
/* sink pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_h264_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_h264_sink_factory);
/* src pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_h264_src_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_h264_src_factory);
gst_vaapiencode_class_init_properties (encode_class);
}

View file

@ -405,12 +405,12 @@ gst_vaapiencode_h265_class_init (GstVaapiEncodeH265Class * klass)
"Sreerenj Balachandran <sreerenj.balachandran@intel.com>");
/* sink pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_h265_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_h265_sink_factory);
/* src pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_h265_src_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_h265_src_factory);
gst_vaapiencode_class_init_properties (encode_class);
}

View file

@ -166,12 +166,12 @@ gst_vaapiencode_jpeg_class_init (GstVaapiEncodeJpegClass * klass)
"Sreerenj Balachandran <sreerenj.balachandran@intel.com>");
/* sink pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_jpeg_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_jpeg_sink_factory);
/* src pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_jpeg_src_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_jpeg_src_factory);
gst_vaapiencode_class_init_properties (encode_class);
}

View file

@ -169,12 +169,12 @@ gst_vaapiencode_mpeg2_class_init (GstVaapiEncodeMpeg2Class * klass)
GST_PLUGIN_DESC, "Guangxin Xu <guangxin.xu@intel.com>");
/* sink pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_mpeg2_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_mpeg2_sink_factory);
/* src pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_mpeg2_src_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_mpeg2_src_factory);
gst_vaapiencode_class_init_properties (encode_class);
}

View file

@ -166,12 +166,12 @@ gst_vaapiencode_vp8_class_init (GstVaapiEncodeVP8Class * klass)
"Sreerenj Balachandran <sreerenj.balachandran@intel.com>");
/* sink pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_vp8_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_vp8_sink_factory);
/* src pad */
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vaapiencode_vp8_src_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_vaapiencode_vp8_src_factory);
gst_vaapiencode_class_init_properties (encode_class);
}

View file

@ -1527,7 +1527,6 @@ gst_vaapipostproc_class_init (GstVaapiPostprocClass * klass)
GObjectClass *const object_class = G_OBJECT_CLASS (klass);
GstElementClass *const element_class = GST_ELEMENT_CLASS (klass);
GstBaseTransformClass *const trans_class = GST_BASE_TRANSFORM_CLASS (klass);
GstPadTemplate *pad_template;
GPtrArray *filter_ops;
GstVaapiFilterOpInfo *filter_op;
@ -1560,12 +1559,12 @@ gst_vaapipostproc_class_init (GstVaapiPostprocClass * klass)
GST_PLUGIN_DESC, "Gwenole Beauchesne <gwenole.beauchesne@intel.com>");
/* sink pad */
pad_template = gst_static_pad_template_get (&gst_vaapipostproc_sink_factory);
gst_element_class_add_pad_template (element_class, pad_template);
gst_element_class_add_static_pad_template (element_class,
&gst_vaapipostproc_sink_factory);
/* src pad */
pad_template = gst_static_pad_template_get (&gst_vaapipostproc_src_factory);
gst_element_class_add_pad_template (element_class, pad_template);
gst_element_class_add_static_pad_template (element_class,
&gst_vaapipostproc_src_factory);
/**
* GstVaapiPostproc:deinterlace-mode:

View file

@ -1703,7 +1703,6 @@ gst_vaapisink_class_init (GstVaapiSinkClass * klass)
GstVideoSinkClass *const videosink_class = GST_VIDEO_SINK_CLASS (klass);
GstVaapiPluginBaseClass *const base_plugin_class =
GST_VAAPI_PLUGIN_BASE_CLASS (klass);
GstPadTemplate *pad_template;
GST_DEBUG_CATEGORY_INIT (gst_debug_vaapisink,
GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC);
@ -1734,8 +1733,8 @@ gst_vaapisink_class_init (GstVaapiSinkClass * klass)
"VA-API sink", "Sink/Video", GST_PLUGIN_DESC,
"Gwenole Beauchesne <gwenole.beauchesne@intel.com>");
pad_template = gst_static_pad_template_get (&gst_vaapisink_sink_factory);
gst_element_class_add_pad_template (element_class, pad_template);
gst_element_class_add_static_pad_template (element_class,
&gst_vaapisink_sink_factory);
/**
* GstVaapiSink:display: