t/hsv: Improve latency when debugging by pushing debug frame after all other frames

This commit is contained in:
Jakob Bornecrantz 2020-02-29 16:15:04 +00:00
parent b05cf3667a
commit 63ca028b83

View file

@ -307,15 +307,16 @@ push_frame(struct xrt_frame_sink *xsink, struct xrt_frame *xf)
return;
}
if (f->debug != NULL) {
f->debug->push_frame(f->debug, xf);
}
push_buf(f, xf, f->sinks[0], &f->frame0);
push_buf(f, xf, f->sinks[1], &f->frame1);
push_buf(f, xf, f->sinks[2], &f->frame2);
push_buf(f, xf, f->sinks[3], &f->frame3);
// Push the debug frame last, there might be a conversion involved.
if (f->debug != NULL) {
f->debug->push_frame(f->debug, xf);
}
assert(f->frame0 == NULL);
assert(f->frame1 == NULL);
assert(f->frame2 == NULL);