projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d9ba7c
)
tests: add another test for adapter timestamps
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 13 May 2009 15:09:32 +0000
(17:09 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 13 May 2009 15:09:32 +0000
(17:09 +0200)
tests/check/libs/adapter.c
patch
|
blob
|
history
diff --git
a/tests/check/libs/adapter.c
b/tests/check/libs/adapter.c
index
96305d6
..
7a53120
100644
(file)
--- 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);
}