check: Verify the DTS emerging from the parser, not PTS

PTS doesn't increment linearly in parsers with frame re-ordering, but
DTS does. Verify that instead.
This commit is contained in:
Jan Schmidt 2012-09-13 13:44:05 -07:00
parent e4e016097a
commit 3ff18504fc

View file

@ -123,7 +123,7 @@ buffer_verify_data (void *buffer, void *user_data)
}
}
if (!vdata->no_metadata) {
fail_unless (GST_BUFFER_TIMESTAMP (buffer) == vdata->ts_counter);
fail_unless (GST_BUFFER_DTS (buffer) == vdata->ts_counter);
fail_unless (GST_BUFFER_DURATION (buffer) != 0);
fail_unless (GST_BUFFER_OFFSET (buffer) == vdata->offset_counter);
}