Skip to content
Snippets Groups Projects
Commit 8ae55e80 authored by kipp's avatar kipp
Browse files

Have chain() check that setcaps() has allocated all the bits that are needed.

parent c1896ce7
No related branches found
No related tags found
No related merge requests found
......@@ -562,6 +562,15 @@ static GstFlowReturn chain(GstPad *pad, GstBuffer *sinkbuf)
COMPLEX16FrequencySeries *tilde_segment = NULL;
COMPLEX16FrequencySeries *mean = NULL;
/*
* Confirm that setcaps() has successfully configured everything
*/
if(!element->window || !element->tail || !element->fwdplan || !element->revplan) {
result = GST_FLOW_NOT_NEGOTIATED;
goto done;
}
/*
* Push the incoming buffer into the adapter. If the buffer is a
* discontinuity, first clear the adapter and reset the clock
......
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