tests: additional offset tracking in parser test helper

This commit is contained in:
Mark Nauwelaerts 2011-05-25 20:49:05 +02:00
parent 91dd0a4f91
commit ca1887d3ec

View file

@ -99,6 +99,7 @@ buffer_verify_data (void *buffer, void *user_data)
if (ctx_verify_buffer)
ctx_verify_buffer (vdata, buffer);
vdata->buffer_counter++;
vdata->offset_counter += GST_BUFFER_SIZE (buffer);
if (vdata->buffer_counter == vdata->discard) {
vdata->buffer_counter = 0;
vdata->discard = 0;