From f6d71be830f41b81d02d769291a19273c9435623 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 13 May 2009 17:09:32 +0200 Subject: [PATCH] tests: add another test for adapter timestamps --- tests/check/libs/adapter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/check/libs/adapter.c b/tests/check/libs/adapter.c index 96305d6..7a53120 100644 --- a/tests/check/libs/adapter.c +++ b/tests/check/libs/adapter.c @@ -394,6 +394,14 @@ GST_START_TEST (test_timestamp) fail_unless (timestamp == 2 * GST_SECOND); fail_unless (dist == 100); + /* clear everything */ + gst_adapter_clear (adapter); + avail = gst_adapter_available (adapter); + fail_unless (avail == 0); + timestamp = gst_adapter_prev_timestamp (adapter, &dist); + fail_unless (timestamp == GST_CLOCK_TIME_NONE); + fail_unless (dist == 0); + g_object_unref (adapter); } -- 2.7.4