Skip to content
Snippets Groups Projects
Commit 2f99f7e5 authored by kipp's avatar kipp
Browse files

Adjust warning/error messages.

parent c39fe0fc
No related branches found
No related tags found
No related merge requests found
......@@ -734,7 +734,7 @@ static void get_property(GObject * object, enum property id, GValue * value, GPa
static gboolean taglist_extract_string(GSTLALSimulation *element, GstTagList *taglist, const char *tagname, gchar **dest)
{
if(!gst_tag_list_get_string(taglist, tagname, dest)) {
GST_ERROR_OBJECT(element, "unable to parse \"%s\" from %" GST_PTR_FORMAT, tagname, taglist);
GST_WARNING_OBJECT(element, "unable to parse \"%s\" from %" GST_PTR_FORMAT, tagname, taglist);
return FALSE;
}
return TRUE;
......@@ -808,6 +808,16 @@ static GstFlowReturn chain(GstPad *pad, GstBuffer *buf)
}
}
/*
* If stream tags not sufficient, reduce to pass-through
*/
if(!element->instrument || !element->channel_name || !element->units) {
GST_ERROR_OBJECT(element, "stream metadata not available, cannot construct injections");
result = gst_pad_push(element->srcpad, buf);
goto done;
}
/*
* Wrap buffer in a LAL REAL8TimeSeries.
*/
......
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