tests: vorbisdec: properly configure audiodecoder when requiring perfect ts
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Sat, 8 Oct 2011 18:16:04 +0000 (20:16 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Sat, 8 Oct 2011 18:50:08 +0000 (20:50 +0200)
tests/check/pipelines/vorbisdec.c

index 751e79a82d2b97b4668a153cf8b69c4182b57f27..8434d6004a768e215c13cc8261f5e54e766a3c8b 100644 (file)
@@ -54,8 +54,11 @@ GST_START_TEST (test_timestamps)
   GstBus *bus;
   GError *error = NULL;
 
+  /* allowing some tolerance permits audiodecoder to come up with
+   * perfect timestamps rather than sticking to upstream ts */
   pipe_str = g_strdup_printf ("audiotestsrc num-buffers=100"
-      " ! audio/x-raw-int,rate=44100 ! audioconvert ! vorbisenc ! vorbisdec"
+      " ! audio/x-raw-int,rate=44100 ! audioconvert ! vorbisenc "
+      " ! vorbisdec tolerance=10000000 "
       " ! identity check-imperfect-timestamp=TRUE ! fakesink");
 
   pipeline = gst_parse_launch (pipe_str, &error);