test: print actual timestamp on failure

This commit is contained in:
Stefan Sauer 2011-07-23 13:46:31 +02:00
parent 0667b1adf5
commit ed1f02e2a1

View file

@ -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);