gst-plugins-base: tests: vorbisdec: properly configure audiodecoder when requiring perfect ts

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Sat Oct 8 11:53:16 PDT 2011


Module: gst-plugins-base
Branch: master
Commit: 9e72c4790cd863d75b61d72989dfdd8c93d712a7
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=9e72c4790cd863d75b61d72989dfdd8c93d712a7

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Sat Oct  8 20:16:04 2011 +0200

tests: vorbisdec: properly configure audiodecoder when requiring perfect ts

---

 tests/check/pipelines/vorbisdec.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/tests/check/pipelines/vorbisdec.c b/tests/check/pipelines/vorbisdec.c
index 751e79a..8434d60 100644
--- a/tests/check/pipelines/vorbisdec.c
+++ b/tests/check/pipelines/vorbisdec.c
@@ -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);



More information about the gstreamer-commits mailing list