mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
test: print actual timestamp on failure
This commit is contained in:
parent
0667b1adf5
commit
ed1f02e2a1
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ buffer_probe_cb (GstPad * pad, GstBuffer * buffer)
|
||||||
{
|
{
|
||||||
if (old_ts != GST_CLOCK_TIME_NONE) {
|
if (old_ts != GST_CLOCK_TIME_NONE) {
|
||||||
fail_unless (GST_BUFFER_TIMESTAMP (buffer) != old_ts,
|
fail_unless (GST_BUFFER_TIMESTAMP (buffer) != old_ts,
|
||||||
"Two buffers had same timestamp");
|
"Two buffers had same timestamp: %" GST_TIME_FORMAT,
|
||||||
|
GST_TIME_ARGS (old_ts));
|
||||||
}
|
}
|
||||||
old_ts = GST_BUFFER_TIMESTAMP (buffer);
|
old_ts = GST_BUFFER_TIMESTAMP (buffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue