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);
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);
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);
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));
}
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);
GST_END_TEST;
-
static Suite *
flacdec_suite (void)
{