Commit 092807f2 authored by Chad Hanna's avatar Chad Hanna
Browse files

gstlal_itacac.c: fix assert to handle EOS

parent 9394fd2a
Pipeline #71340 passed with stages
in 25 minutes and 28 seconds
......@@ -1249,7 +1249,7 @@ static GstFlowReturn process(GSTLALItacac *itacac) {
// copysamps = nongapsamps
// outsamps = itacacpad->n + itacacpad->adjust_window
// peak_finding_length = itacacpad->n + itacacpad->adjust_window - 2 * itacacpad->maxdata->pad = outsamps - 2 * itacacpad->maxdata->pad
g_assert(availablesamps > nongapsamps);
g_assert(availablesamps > nongapsamps || (itacacpad->EOS && availablesamps == nongapsamps));
outsamps = itacacpad->n + itacacpad->adjust_window;
copy_nongapsamps(itacac, itacacpad, copysamps, outsamps - 2 * itacacpad->maxdata->pad, 0, -1 * (gint) itacacpad->adjust_window);
itacacpad->last_gap = TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment