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

gstlal_snglinspiral: add error checking on output buffer allocation

parent 4358b0cb
No related branches found
Tags gstlal-calibration-1.2.11-v1
No related merge requests found
......@@ -107,8 +107,11 @@ GstBuffer *gstlal_snglinspiral_new_buffer_from_peak(struct gstlal_double_complex
double complex *maxdata = input->values;
guint *maxsample = input->samples;
if (result != GST_FLOW_OK)
if (result != GST_FLOW_OK) {
GstElement *element= gst_pad_get_parent_element(pad);
GST_ERROR_OBJECT(element, "Could not allocate sngl-inspiral buffer %d", result);
return srcbuf;
}
if (input->num_events == 0)
GST_BUFFER_FLAG_SET(srcbuf, GST_BUFFER_FLAG_GAP);
......
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