diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2016-03-04 10:30:12 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-03-24 14:32:20 +0200 |
commit | 1071309870735ce1f167a2e53c224636812e6eaf (patch) | |
tree | 166ac197d98639553c4d9f437dfe53676f9340b1 /tests/check | |
parent | 2b8b5f22465850b306b93c8317ac0f4ff10ca432 (diff) |
good: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763076
Diffstat (limited to 'tests/check')
-rw-r--r-- | tests/check/elements/autodetect.c | 6 | ||||
-rw-r--r-- | tests/check/elements/qtmux.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/tests/check/elements/autodetect.c b/tests/check/elements/autodetect.c index 578627cd6..eb3697769 100644 --- a/tests/check/elements/autodetect.c +++ b/tests/check/elements/autodetect.c @@ -45,8 +45,7 @@ gst_fake_audio_sink_class_init (GstFakeAudioSinkClass * klass) gst_element_class_set_static_metadata (gstelement_class, "Fake Audio Sink", "Sink/Audio", "Audio sink fake for testing", "Stefan Sauer"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, &pad_template); } static void @@ -70,8 +69,7 @@ gst_fake_video_sink_class_init (GstFakeVideoSinkClass * klass) gst_element_class_set_static_metadata (gstelement_class, "Fake Video Sink", "Sink/Video", "Video sink fake for testing", "Stefan Sauer"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, &pad_template); } static void diff --git a/tests/check/elements/qtmux.c b/tests/check/elements/qtmux.c index ff8b07b10..a552d4307 100644 --- a/tests/check/elements/qtmux.c +++ b/tests/check/elements/qtmux.c @@ -671,10 +671,8 @@ test_mp3_enc_class_init (TestMp3EncClass * klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (element_class, &sink_template); + gst_element_class_add_static_pad_template (element_class, &src_template); gst_element_class_set_metadata (element_class, "MPEG1 Audio Encoder", "Codec/Encoder/Audio", "Pretends to encode mp3", "Foo Bar <foo@bar.com>"); |