bad: use new gst_element_class_add_static_pad_template()

https://bugzilla.gnome.org/show_bug.cgi?id=763081
This commit is contained in:
Vineeth TM 2016-03-04 15:50:26 +09:00 committed by Sebastian Dröge
parent a7b86878fb
commit fe159a6847
2 changed files with 10 additions and 12 deletions

View file

@ -566,13 +566,12 @@ gst_audio_interleave_class_init (GstAudioInterleaveClass * klass)
gobject_class->get_property = gst_audio_interleave_get_property;
gobject_class->finalize = gst_audio_interleave_finalize;
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_audio_interleave_src_template));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_audio_interleave_sink_template));
gst_element_class_add_static_pad_template (gstelement_class,
&gst_audio_interleave_src_template);
gst_element_class_add_static_pad_template (gstelement_class,
&gst_audio_interleave_sink_template);
gst_element_class_set_static_metadata (gstelement_class, "AudioInterleave",
"Generic/Audio",
"Mixes multiple audio streams",
"Generic/Audio", "Mixes multiple audio streams",
"Olivier Crete <olivier.crete@collabora.com>");
gstelement_class->request_new_pad =

View file

@ -485,13 +485,12 @@ gst_audiomixer_class_init (GstAudioMixerClass * klass)
"Setting this property takes a reference to the supplied GstCaps "
"object", GST_TYPE_CAPS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_audiomixer_src_template));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_audiomixer_sink_template));
gst_element_class_add_static_pad_template (gstelement_class,
&gst_audiomixer_src_template);
gst_element_class_add_static_pad_template (gstelement_class,
&gst_audiomixer_sink_template);
gst_element_class_set_static_metadata (gstelement_class, "AudioMixer",
"Generic/Audio",
"Mixes multiple audio streams",
"Generic/Audio", "Mixes multiple audio streams",
"Sebastian Dröge <sebastian@centricular.com>");
gstelement_class->request_new_pad =