1 /* GStreamer unit tests for decodebin2
3 * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
4 * Copyright (C) 2011 Hewlett-Packard Development Company, L.P.
5 * Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>, Collabora Ltd.
6 * Sebastian Dröge <sebastian.droege@collabora.co.uk>, Collabora Ltd.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
28 #include <gst/check/gstcheck.h>
29 #include <gst/base/gstbaseparse.h>
32 static const gchar dummytext[] =
33 "Quick Brown Fox Jumps over a Lazy Frog Quick Brown "
34 "Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog Quick "
35 "Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog "
36 "Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy "
37 "Frog Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a "
38 "Lazy Frog Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps "
39 "over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox "
40 "jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog Quick Brown "
41 "Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog Quick "
42 "Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog "
43 "Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy "
44 "Frog Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a "
45 "Lazy Frog Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps "
46 "over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox ";
49 src_handoff_cb (GstElement * src, GstBuffer * buf, GstPad * pad, gpointer data)
51 GST_BUFFER_DATA (buf) = (guint8 *) dummytext;
52 GST_BUFFER_SIZE (buf) = sizeof (dummytext);
53 GST_BUFFER_OFFSET (buf) = 0;
54 GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_READONLY);
58 decodebin_new_decoded_pad_cb (GstElement * decodebin, GstPad * pad,
59 gboolean last, gboolean * p_flag)
61 /* we should not be reached */
62 fail_unless (decodebin == NULL, "new-decoded-pad should not be emitted");
65 /* make sure that decodebin errors out instead of creating a new decoded pad
66 * if the entire stream is a plain text file */
67 GST_START_TEST (test_text_plain_streams)
69 GstElement *pipe, *src, *decodebin;
72 pipe = gst_pipeline_new (NULL);
73 fail_unless (pipe != NULL, "failed to create pipeline");
75 src = gst_element_factory_make ("fakesrc", "src");
76 fail_unless (src != NULL, "Failed to create fakesrc element");
78 g_object_set (src, "signal-handoffs", TRUE, NULL);
79 g_object_set (src, "num-buffers", 1, NULL);
80 g_object_set (src, "can-activate-pull", FALSE, NULL);
81 g_signal_connect (src, "handoff", G_CALLBACK (src_handoff_cb), NULL);
83 decodebin = gst_element_factory_make ("decodebin2", "decodebin");
84 fail_unless (decodebin != NULL, "Failed to create decodebin element");
86 g_signal_connect (decodebin, "new-decoded-pad",
87 G_CALLBACK (decodebin_new_decoded_pad_cb), NULL);
89 fail_unless (gst_bin_add (GST_BIN (pipe), src));
90 fail_unless (gst_bin_add (GST_BIN (pipe), decodebin));
91 fail_unless (gst_element_link (src, decodebin), "can't link src<->decodebin");
93 fail_unless_equals_int (gst_element_set_state (pipe, GST_STATE_READY),
94 GST_STATE_CHANGE_SUCCESS);
95 /* it's push-based, so should be async */
96 fail_unless_equals_int (gst_element_set_state (pipe, GST_STATE_PAUSED),
97 GST_STATE_CHANGE_ASYNC);
99 /* it should error out at some point */
100 msg = gst_bus_poll (GST_ELEMENT_BUS (pipe), GST_MESSAGE_ERROR, -1);
101 fail_unless (msg != NULL);
102 fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
103 gst_message_unref (msg);
105 gst_element_set_state (pipe, GST_STATE_NULL);
106 gst_object_unref (pipe);
112 new_decoded_pad_plug_fakesink_cb (GstElement * decodebin, GstPad * srcpad,
113 gboolean last, GstElement * pipeline)
118 GST_LOG ("Linking fakesink");
120 sink = gst_element_factory_make ("fakesink", "sink");
121 fail_unless (sink != NULL, "Failed to create fakesink element");
123 gst_bin_add (GST_BIN (pipeline), sink);
125 sinkpad = gst_element_get_static_pad (sink, "sink");
126 fail_unless_equals_int (gst_pad_link (srcpad, sinkpad), GST_PAD_LINK_OK);
127 gst_object_unref (sinkpad);
129 gst_element_set_state (sink, GST_STATE_PLAYING);
132 GST_START_TEST (test_reuse_without_decoders)
134 GstElement *pipe, *src, *decodebin, *sink;
136 pipe = gst_pipeline_new (NULL);
137 fail_unless (pipe != NULL, "failed to create pipeline");
139 src = gst_element_factory_make ("audiotestsrc", "src");
140 fail_unless (src != NULL, "Failed to create audiotestsrc element");
142 decodebin = gst_element_factory_make ("decodebin2", "decodebin");
143 fail_unless (decodebin != NULL, "Failed to create decodebin element");
145 g_signal_connect (decodebin, "new-decoded-pad",
146 G_CALLBACK (new_decoded_pad_plug_fakesink_cb), pipe);
148 fail_unless (gst_bin_add (GST_BIN (pipe), src));
149 fail_unless (gst_bin_add (GST_BIN (pipe), decodebin));
150 fail_unless (gst_element_link (src, decodebin), "can't link src<->decodebin");
152 fail_unless_equals_int (gst_element_set_state (pipe, GST_STATE_READY),
153 GST_STATE_CHANGE_SUCCESS);
154 /* it's push-based, so should be async */
155 fail_unless_equals_int (gst_element_set_state (pipe, GST_STATE_PAUSED),
156 GST_STATE_CHANGE_ASYNC);
158 /* wait for state change to complete */
159 fail_unless_equals_int (gst_element_get_state (pipe, NULL, NULL, -1),
160 GST_STATE_CHANGE_SUCCESS);
162 /* there shouldn't be any errors */
163 fail_if (gst_bus_poll (GST_ELEMENT_BUS (pipe), GST_MESSAGE_ERROR, 0) != NULL);
166 gst_element_set_state (pipe, GST_STATE_READY);
168 sink = gst_bin_get_by_name (GST_BIN (pipe), "sink");
169 gst_bin_remove (GST_BIN (pipe), sink);
170 gst_element_set_state (sink, GST_STATE_NULL);
171 gst_object_unref (sink);
173 GST_LOG ("second try");
175 fail_unless_equals_int (gst_element_set_state (pipe, GST_STATE_READY),
176 GST_STATE_CHANGE_SUCCESS);
177 /* it's push-based, so should be async */
178 fail_unless_equals_int (gst_element_set_state (pipe, GST_STATE_PAUSED),
179 GST_STATE_CHANGE_ASYNC);
181 /* wait for state change to complete */
182 fail_unless_equals_int (gst_element_get_state (pipe, NULL, NULL, -1),
183 GST_STATE_CHANGE_SUCCESS);
185 /* there shouldn't be any errors */
186 fail_if (gst_bus_poll (GST_ELEMENT_BUS (pipe), GST_MESSAGE_ERROR, 0) != NULL);
188 gst_element_set_state (pipe, GST_STATE_NULL);
189 gst_object_unref (pipe);
194 /* Fake mp3 parser for test */
195 typedef GstBaseParse TestMpegAudioParse;
196 typedef GstBaseParseClass TestMpegAudioParseClass;
198 static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
201 GST_STATIC_CAPS ("audio/mpeg, mpegversion=1, layer=[1,3], parsed=(b)true")
204 static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
207 GST_STATIC_CAPS ("audio/mpeg, mpegversion=1, parsed=(bool) { false, true }")
210 static GType test_mpeg_audio_parse_get_type (void);
211 static gboolean test_mpeg_audio_parse_start (GstBaseParse * parse);
212 static gboolean test_mpeg_audio_parse_stop (GstBaseParse * parse);
213 static gboolean test_mpeg_audio_parse_check_valid_frame (GstBaseParse * parse,
214 GstBaseParseFrame * frame, guint * size, gint * skipsize);
215 static GstFlowReturn test_mpeg_audio_parse_parse_frame (GstBaseParse * parse,
216 GstBaseParseFrame * frame);
218 GST_BOILERPLATE (TestMpegAudioParse, test_mpeg_audio_parse, GstBaseParse,
219 GST_TYPE_BASE_PARSE);
222 test_mpeg_audio_parse_base_init (gpointer klass)
224 GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
226 gst_element_class_add_static_pad_template (element_class,
228 gst_element_class_add_static_pad_template (element_class, &src_template);
230 gst_element_class_set_details_simple (element_class, "MPEG1 Audio Parser",
231 "Codec/Parser/Audio", "Pretends to parse mpeg1 audio stream",
232 "Foo Bar <foo@bar.com>");
236 test_mpeg_audio_parse_class_init (TestMpegAudioParseClass * klass)
238 GstBaseParseClass *parse_class = GST_BASE_PARSE_CLASS (klass);
240 parse_class->start = test_mpeg_audio_parse_start;
241 parse_class->stop = test_mpeg_audio_parse_stop;
242 parse_class->check_valid_frame = test_mpeg_audio_parse_check_valid_frame;
243 parse_class->parse_frame = test_mpeg_audio_parse_parse_frame;
246 static gint num_parse_instances = 0;
249 test_mpeg_audio_parse_init (TestMpegAudioParse * mp3parse,
250 TestMpegAudioParseClass * klass)
252 /* catch decodebin plugging parsers in a loop early */
253 fail_unless (++num_parse_instances < 10);
257 test_mpeg_audio_parse_start (GstBaseParse * parse)
259 gst_base_parse_set_min_frame_size (parse, 6);
264 test_mpeg_audio_parse_stop (GstBaseParse * parse)
270 test_mpeg_audio_parse_check_valid_frame (GstBaseParse * parse,
271 GstBaseParseFrame * frame, guint * framesize, gint * skipsize)
273 const guint8 *data = GST_BUFFER_DATA (frame->buffer);
275 if ((GST_READ_UINT16_BE (data) & 0xffe0) == 0xffe0) {
276 /* this framesize is hard-coded for ../test.mp3 */
286 test_mpeg_audio_parse_parse_frame (GstBaseParse * parse,
287 GstBaseParseFrame * frame)
289 if (GST_BUFFER_OFFSET (frame->buffer) == 0) {
292 caps = gst_caps_new_simple ("audio/mpeg", "mpegversion", G_TYPE_INT, 1,
293 "mpegaudioversion", G_TYPE_INT, 1, "layer", G_TYPE_INT, 3,
294 "rate", G_TYPE_INT, 44100, "channels", G_TYPE_INT, 2, NULL);
295 gst_buffer_set_caps (frame->buffer, caps);
296 gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (parse), caps);
297 gst_caps_unref (caps);
303 plugin_init (GstPlugin * plugin)
305 return gst_element_register (plugin, "testmpegaudioparse", GST_RANK_NONE,
306 test_mpeg_audio_parse_get_type ());
309 GST_START_TEST (test_mp3_parser_loop)
311 GstStateChangeReturn sret;
312 GstPluginFeature *feature;
314 GstElement *pipe, *src, *dec;
317 num_parse_instances = 0;
319 gst_plugin_register_static (GST_VERSION_MAJOR, GST_VERSION_MINOR,
320 "fakemp3parse", "fakemp3parse", plugin_init, VERSION, "LGPL",
321 "gst-plugins-base", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
323 feature = gst_default_registry_find_feature ("testmpegaudioparse",
324 GST_TYPE_ELEMENT_FACTORY);
326 gst_plugin_feature_set_rank (feature, GST_RANK_PRIMARY + 100);
328 pipe = gst_pipeline_new (NULL);
330 src = gst_element_factory_make ("filesrc", NULL);
331 fail_unless (src != NULL);
333 path = g_build_filename (GST_TEST_FILES_PATH, "test.mp3", NULL);
334 g_object_set (src, "location", path, NULL);
337 dec = gst_element_factory_make ("decodebin2", NULL);
338 fail_unless (dec != NULL);
340 gst_bin_add_many (GST_BIN (pipe), src, dec, NULL);
341 gst_element_link_many (src, dec, NULL);
343 sret = gst_element_set_state (pipe, GST_STATE_PLAYING);
344 fail_unless_equals_int (sret, GST_STATE_CHANGE_ASYNC);
346 /* wait for unlinked error */
347 msg = gst_bus_timed_pop_filtered (GST_ELEMENT_BUS (pipe),
348 GST_CLOCK_TIME_NONE, GST_MESSAGE_ERROR);
349 gst_message_unref (msg);
351 gst_element_set_state (pipe, GST_STATE_NULL);
352 gst_object_unref (pipe);
354 /* make sure out parser got plugged at all though */
355 fail_unless_equals_int (num_parse_instances, 1);
357 /* don't want to interfere with any other of the other tests */
358 gst_plugin_feature_set_rank (feature, GST_RANK_NONE);
359 gst_object_unref (feature);
364 /* Fake parser/decoder for parser_negotiation test */
365 static GType gst_fake_h264_parser_get_type (void);
366 static GType gst_fake_h264_decoder_get_type (void);
369 #define parent_class fake_h264_parser_parent_class
370 typedef struct _GstFakeH264Parser GstFakeH264Parser;
371 typedef GstElementClass GstFakeH264ParserClass;
373 struct _GstFakeH264Parser
378 GST_BOILERPLATE (GstFakeH264Parser, gst_fake_h264_parser, GstElement,
382 gst_fake_h264_parser_base_init (gpointer klass)
384 static GstStaticPadTemplate sink_templ = GST_STATIC_PAD_TEMPLATE ("sink",
385 GST_PAD_SINK, GST_PAD_ALWAYS,
386 GST_STATIC_CAPS ("video/x-h264"));
387 static GstStaticPadTemplate src_templ = GST_STATIC_PAD_TEMPLATE ("src",
388 GST_PAD_SRC, GST_PAD_ALWAYS,
389 GST_STATIC_CAPS ("video/x-h264, "
390 "stream-format=(string) { avc, byte-stream }"));
391 GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
393 gst_element_class_add_static_pad_template (element_class, &sink_templ);
394 gst_element_class_add_static_pad_template (element_class, &src_templ);
395 gst_element_class_set_details_simple (element_class,
396 "FakeH264Parser", "Codec/Parser/Converter/Video", "yep", "me");
400 gst_fake_h264_parser_class_init (GstFakeH264ParserClass * klass)
405 gst_fake_h264_parser_sink_setcaps (GstPad * pad, GstCaps * caps)
407 GstElement *self = GST_ELEMENT (gst_pad_get_parent (pad));
408 GstPad *otherpad = gst_element_get_static_pad (self, "src");
409 GstCaps *accepted_caps;
411 const gchar *stream_format;
413 accepted_caps = gst_pad_get_allowed_caps (otherpad);
414 accepted_caps = gst_caps_make_writable (accepted_caps);
415 gst_caps_truncate (accepted_caps);
417 s = gst_caps_get_structure (accepted_caps, 0);
418 stream_format = gst_structure_get_string (s, "stream-format");
420 gst_structure_set (s, "stream-format", G_TYPE_STRING, "avc", NULL);
422 gst_pad_set_caps (otherpad, accepted_caps);
423 gst_caps_unref (accepted_caps);
425 gst_object_unref (otherpad);
426 gst_object_unref (self);
432 gst_fake_h264_parser_sink_chain (GstPad * pad, GstBuffer * buf)
434 GstElement *self = GST_ELEMENT (gst_pad_get_parent (pad));
435 GstPad *otherpad = gst_element_get_static_pad (self, "src");
436 GstFlowReturn ret = GST_FLOW_OK;
438 buf = gst_buffer_make_metadata_writable (buf);
439 gst_buffer_set_caps (buf, GST_PAD_CAPS (otherpad));
441 ret = gst_pad_push (otherpad, buf);
443 gst_object_unref (otherpad);
444 gst_object_unref (self);
450 gst_fake_h264_parser_init (GstFakeH264Parser * self,
451 GstFakeH264ParserClass * klass)
456 gst_pad_new_from_template (gst_element_class_get_pad_template
457 (GST_ELEMENT_GET_CLASS (self), "sink"), "sink");
458 gst_pad_set_setcaps_function (pad, gst_fake_h264_parser_sink_setcaps);
459 gst_pad_set_chain_function (pad, gst_fake_h264_parser_sink_chain);
460 gst_element_add_pad (GST_ELEMENT (self), pad);
463 gst_pad_new_from_template (gst_element_class_get_pad_template
464 (GST_ELEMENT_GET_CLASS (self), "src"), "src");
465 gst_element_add_pad (GST_ELEMENT (self), pad);
469 #define parent_class fake_h264_decoder_parent_class
470 typedef struct _GstFakeH264Decoder GstFakeH264Decoder;
471 typedef GstElementClass GstFakeH264DecoderClass;
473 struct _GstFakeH264Decoder
478 GST_BOILERPLATE (GstFakeH264Decoder, gst_fake_h264_decoder, GstElement,
482 gst_fake_h264_decoder_base_init (gpointer klass)
484 static GstStaticPadTemplate sink_templ = GST_STATIC_PAD_TEMPLATE ("sink",
485 GST_PAD_SINK, GST_PAD_ALWAYS,
486 GST_STATIC_CAPS ("video/x-h264, " "stream-format=(string) byte-stream"));
487 static GstStaticPadTemplate src_templ = GST_STATIC_PAD_TEMPLATE ("src",
488 GST_PAD_SRC, GST_PAD_ALWAYS,
489 GST_STATIC_CAPS ("video/x-raw-yuv"));
490 GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
492 gst_element_class_add_static_pad_template (element_class, &sink_templ);
493 gst_element_class_add_static_pad_template (element_class, &src_templ);
494 gst_element_class_set_details_simple (element_class,
495 "FakeH264Decoder", "Codec/Decoder/Video", "yep", "me");
499 gst_fake_h264_decoder_class_init (GstFakeH264DecoderClass * klass)
504 gst_fake_h264_decoder_sink_setcaps (GstPad * pad, GstCaps * caps)
506 GstElement *self = GST_ELEMENT (gst_pad_get_parent (pad));
507 GstPad *otherpad = gst_element_get_static_pad (self, "src");
509 caps = gst_caps_new_simple ("video/x-raw-yuv", NULL);
510 gst_pad_set_caps (otherpad, caps);
511 gst_caps_unref (caps);
513 gst_object_unref (otherpad);
514 gst_object_unref (self);
520 gst_fake_h264_decoder_sink_chain (GstPad * pad, GstBuffer * buf)
522 GstElement *self = GST_ELEMENT (gst_pad_get_parent (pad));
523 GstPad *otherpad = gst_element_get_static_pad (self, "src");
524 GstFlowReturn ret = GST_FLOW_OK;
526 buf = gst_buffer_make_metadata_writable (buf);
527 gst_buffer_set_caps (buf, GST_PAD_CAPS (otherpad));
529 ret = gst_pad_push (otherpad, buf);
531 gst_object_unref (otherpad);
532 gst_object_unref (self);
538 gst_fake_h264_decoder_init (GstFakeH264Decoder * self,
539 GstFakeH264DecoderClass * klass)
544 gst_pad_new_from_template (gst_element_class_get_pad_template
545 (GST_ELEMENT_GET_CLASS (self), "sink"), "sink");
546 gst_pad_set_setcaps_function (pad, gst_fake_h264_decoder_sink_setcaps);
547 gst_pad_set_chain_function (pad, gst_fake_h264_decoder_sink_chain);
548 gst_element_add_pad (GST_ELEMENT (self), pad);
551 gst_pad_new_from_template (gst_element_class_get_pad_template
552 (GST_ELEMENT_GET_CLASS (self), "src"), "src");
553 gst_element_add_pad (GST_ELEMENT (self), pad);
557 parser_negotiation_pad_added_cb (GstElement * dec, GstPad * pad,
560 GstBin *pipe = user_data;
564 sink = gst_element_factory_make ("fakesink", NULL);
565 gst_bin_add (pipe, sink);
566 gst_element_sync_state_with_parent (sink);
567 sinkpad = gst_element_get_static_pad (sink, "sink");
568 gst_pad_link (pad, sinkpad);
569 gst_object_unref (sinkpad);
572 GST_START_TEST (test_parser_negotiation)
574 GstStateChangeReturn sret;
577 GstElement *pipe, *src, *filter, *dec;
579 gst_element_register (NULL, "fakeh264parse", GST_RANK_PRIMARY + 101,
580 gst_fake_h264_parser_get_type ());
581 gst_element_register (NULL, "fakeh264dec", GST_RANK_PRIMARY + 100,
582 gst_fake_h264_decoder_get_type ());
584 pipe = gst_pipeline_new (NULL);
586 src = gst_element_factory_make ("fakesrc", NULL);
587 fail_unless (src != NULL);
588 g_object_set (G_OBJECT (src), "num-buffers", 5, "sizetype", 2, "filltype", 2,
589 "can-activate-pull", FALSE, NULL);
591 filter = gst_element_factory_make ("capsfilter", NULL);
592 fail_unless (filter != NULL);
593 caps = gst_caps_from_string ("video/x-h264");
594 g_object_set (G_OBJECT (filter), "caps", caps, NULL);
595 gst_caps_unref (caps);
597 dec = gst_element_factory_make ("decodebin2", NULL);
598 fail_unless (dec != NULL);
600 g_signal_connect (dec, "pad-added",
601 G_CALLBACK (parser_negotiation_pad_added_cb), pipe);
603 gst_bin_add_many (GST_BIN (pipe), src, filter, dec, NULL);
604 gst_element_link_many (src, filter, dec, NULL);
606 sret = gst_element_set_state (pipe, GST_STATE_PLAYING);
607 fail_unless_equals_int (sret, GST_STATE_CHANGE_ASYNC);
609 /* wait for EOS or error */
610 msg = gst_bus_timed_pop_filtered (GST_ELEMENT_BUS (pipe),
611 GST_CLOCK_TIME_NONE, GST_MESSAGE_ERROR | GST_MESSAGE_EOS);
612 fail_unless (msg != NULL);
613 fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_EOS);
614 gst_message_unref (msg);
616 gst_element_set_state (pipe, GST_STATE_NULL);
617 gst_object_unref (pipe);
623 decodebin2_suite (void)
625 Suite *s = suite_create ("decodebin2");
626 TCase *tc_chain = tcase_create ("general");
628 suite_add_tcase (s, tc_chain);
629 tcase_add_test (tc_chain, test_text_plain_streams);
630 tcase_add_test (tc_chain, test_reuse_without_decoders);
631 tcase_add_test (tc_chain, test_mp3_parser_loop);
632 tcase_add_test (tc_chain, test_parser_negotiation);
637 GST_CHECK_MAIN (decodebin2);