Skip to content
Snippets Groups Projects
Commit 092807f2 authored by Chad Hanna's avatar Chad Hanna
Browse files

gstlal_itacac.c: fix assert to handle EOS

parent 9394fd2a
No related branches found
No related tags found
No related merge requests found
Pipeline #71340 passed with warnings
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment