From 62892805356e183c711882c6afeb1375358e5899 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 4 Jul 2016 17:45:40 +0200 Subject: [PATCH] qtmux: Use complete AAC caps with codec_data in the tests --- tests/check/elements/qtmux.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/tests/check/elements/qtmux.c b/tests/check/elements/qtmux.c index 4bc1402..a029c52 100644 --- a/tests/check/elements/qtmux.c +++ b/tests/check/elements/qtmux.c @@ -1292,9 +1292,7 @@ GST_START_TEST (test_muxing) input2.input = NULL; input2.input = g_list_append (input2.input, gst_event_new_stream_start ("test-2")); - caps = gst_caps_from_string - ("audio/mpeg, rate=(int)44100, channels=(int)1, mpegversion=(int)4, " - "stream-format=(string)raw, framed=(boolean)true"); + caps = gst_caps_from_string (AUDIO_AAC_CAPS_STRING); input2.input = g_list_append (input2.input, gst_event_new_caps (caps)); gst_caps_unref (caps); gst_segment_init (&input2.segment, GST_FORMAT_TIME); @@ -1353,9 +1351,7 @@ GST_START_TEST (test_muxing_non_zero_segment) input2.input = NULL; input2.input = g_list_append (input2.input, gst_event_new_stream_start ("test-2")); - caps = gst_caps_from_string - ("audio/mpeg, rate=(int)44100, channels=(int)1, mpegversion=(int)4, " - "stream-format=(string)raw, framed=(boolean)true"); + caps = gst_caps_from_string (AUDIO_AAC_CAPS_STRING); input2.input = g_list_append (input2.input, gst_event_new_caps (caps)); gst_caps_unref (caps); gst_segment_init (&input2.segment, GST_FORMAT_TIME); @@ -1417,9 +1413,7 @@ GST_START_TEST (test_muxing_non_zero_segment_different) input2.input = NULL; input2.input = g_list_append (input2.input, gst_event_new_stream_start ("test-2")); - caps = gst_caps_from_string - ("audio/mpeg, rate=(int)44100, channels=(int)1, mpegversion=(int)4, " - "stream-format=(string)raw, framed=(boolean)true"); + caps = gst_caps_from_string (AUDIO_AAC_CAPS_STRING); input2.input = g_list_append (input2.input, gst_event_new_caps (caps)); gst_caps_unref (caps); gst_segment_init (&input2.segment, GST_FORMAT_TIME); @@ -1485,9 +1479,7 @@ GST_START_TEST (test_muxing_dts_outside_segment) input2.input = NULL; input2.input = g_list_append (input2.input, gst_event_new_stream_start ("test-2")); - caps = gst_caps_from_string - ("audio/mpeg, rate=(int)44100, channels=(int)1, mpegversion=(int)4, " - "stream-format=(string)raw, framed=(boolean)true"); + caps = gst_caps_from_string (AUDIO_AAC_CAPS_STRING); input2.input = g_list_append (input2.input, gst_event_new_caps (caps)); gst_caps_unref (caps); gst_segment_init (&input2.segment, GST_FORMAT_TIME); @@ -1554,9 +1546,7 @@ GST_START_TEST (test_muxing_initial_gap) input2.input = NULL; input2.input = g_list_append (input2.input, gst_event_new_stream_start ("test-2")); - caps = gst_caps_from_string - ("audio/mpeg, rate=(int)44100, channels=(int)1, mpegversion=(int)4, " - "stream-format=(string)raw, framed=(boolean)true"); + caps = gst_caps_from_string (AUDIO_AAC_CAPS_STRING); input2.input = g_list_append (input2.input, gst_event_new_caps (caps)); gst_caps_unref (caps); gst_segment_init (&input2.segment, GST_FORMAT_TIME); -- 2.7.4