mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
tests: add another test for adapter timestamps
This commit is contained in:
parent
0d9ba7c7fe
commit
f6d71be830
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue