From: Mark Nauwelaerts Date: Wed, 28 Mar 2012 14:26:15 +0000 (+0200) Subject: tests: flacdec: needs flacparse nowadays X-Git-Tag: RELEASE-0.11.90~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9c802d83403b35e18b61051c98d983005ee37cc;p=platform%2Fupstream%2Fgst-plugins-good.git tests: flacdec: needs flacparse nowadays --- diff --git a/tests/check/pipelines/flacdec.c b/tests/check/pipelines/flacdec.c index a6fab9f..d1e4fc2 100644 --- a/tests/check/pipelines/flacdec.c +++ b/tests/check/pipelines/flacdec.c @@ -71,7 +71,8 @@ GST_START_TEST (test_decode) gchar *path = g_build_filename (GST_TEST_FILES_PATH, "audiotestsrc.flac", NULL); gchar *pipe_desc = - g_strdup_printf ("filesrc location=\"%s\" ! flacdec ! appsink name=sink", + g_strdup_printf + ("filesrc location=\"%s\" ! flacparse ! flacdec ! appsink name=sink", path); pipeline = gst_parse_launch (pipe_desc, NULL); @@ -121,7 +122,8 @@ GST_START_TEST (test_decode_seek_full) gchar *path = g_build_filename (GST_TEST_FILES_PATH, "audiotestsrc.flac", NULL); gchar *pipe_desc = - g_strdup_printf ("filesrc location=\"%s\" ! flacdec ! appsink name=sink", + g_strdup_printf + ("filesrc location=\"%s\" ! flacparse ! flacdec ! appsink name=sink", path); pipeline = gst_parse_launch (pipe_desc, NULL); @@ -180,7 +182,8 @@ GST_START_TEST (test_decode_seek_partial) gchar *path = g_build_filename (GST_TEST_FILES_PATH, "audiotestsrc.flac", NULL); gchar *pipe_desc = - g_strdup_printf ("filesrc location=\"%s\" ! flacdec ! appsink name=sink", + g_strdup_printf + ("filesrc location=\"%s\" ! flacparse ! flacdec ! appsink name=sink", path); pipeline = gst_parse_launch (pipe_desc, NULL); @@ -211,7 +214,6 @@ GST_START_TEST (test_decode_seek_partial) if (sample == NULL) break; if (first_sample == 0) { -// fail_unless_equals_int (GST_BUFFER_OFFSET (buffer), 0L); first_sample = _get_first_sample (sample); } size += gst_buffer_get_size (gst_sample_get_buffer (sample)); @@ -221,7 +223,8 @@ GST_START_TEST (test_decode_seek_partial) } while (TRUE); - fail_unless_equals_int (size, 2048); + /* allow for sample round-up clipping effect */ + fail_unless (size == 2048 || size == 2050); fail_unless_equals_int (first_sample, 0x066a); gst_element_set_state (pipeline, GST_STATE_NULL); @@ -232,7 +235,6 @@ GST_START_TEST (test_decode_seek_partial) GST_END_TEST; - static Suite * flacdec_suite (void) {