Skip to content
Snippets Groups Projects
Commit 8e56ad32 authored by Aaron Viets's avatar Aaron Viets
Browse files

lal_sensingtdcfs: only give warnings if there is no good solution for a while

parent 5f084abb
No related branches found
No related tags found
No related merge requests found
...@@ -764,9 +764,9 @@ static GstFlowReturn transform(GstBaseTransform *trans, GstBuffer *inbuf, GstBuf ...@@ -764,9 +764,9 @@ static GstFlowReturn transform(GstBaseTransform *trans, GstBuffer *inbuf, GstBuf
default: default:
element->consecutive_failures++; element->consecutive_failures++;
if(!(element->consecutive_failures % 1000)) if(!(element->consecutive_failures % 1000))
GST_WARNING_OBJECT(element, "Unable to find a stable solution for the sensing function TDCFs for %d samples", element->consecutive_failures); GST_WARNING_OBJECT(element, "%lu: Unable to find a stable solution for the sensing function TDCFs for %d samples", GST_BUFFER_PTS(inbuf) / GST_SECOND, element->consecutive_failures);
else else
GST_DEBUG_OBJECT(element, "Unable to find a stable solution for the sensing function TDCFs"); GST_DEBUG_OBJECT(element, "%lu: Unable to find a stable solution for the sensing function TDCFs", GST_BUFFER_PTS(inbuf) / GST_SECOND);
outdata[4 * i] = (float) element->current_kc; outdata[4 * i] = (float) element->current_kc;
outdata[4 * i + 1] = (float) element->current_fcc; outdata[4 * i + 1] = (float) element->current_fcc;
outdata[4 * i + 2] = (float) element->current_fs_squared; outdata[4 * i + 2] = (float) element->current_fs_squared;
...@@ -865,9 +865,9 @@ static GstFlowReturn transform(GstBaseTransform *trans, GstBuffer *inbuf, GstBuf ...@@ -865,9 +865,9 @@ static GstFlowReturn transform(GstBaseTransform *trans, GstBuffer *inbuf, GstBuf
default: default:
element->consecutive_failures++; element->consecutive_failures++;
if(!(element->consecutive_failures % 1000)) if(!(element->consecutive_failures % 1000))
GST_WARNING_OBJECT(element, "Unable to find a stable solution for the sensing function TDCFs for %d samples", element->consecutive_failures); GST_WARNING_OBJECT(element, "%lu: Unable to find a stable solution for the sensing function TDCFs for %d samples", GST_BUFFER_PTS(inbuf) / GST_SECOND, element->consecutive_failures);
else else
GST_DEBUG_OBJECT(element, "Unable to find a stable solution for the sensing function TDCFs"); GST_DEBUG_OBJECT(element, "%lu: Unable to find a stable solution for the sensing function TDCFs", GST_BUFFER_PTS(inbuf) / GST_SECOND);
outdata[4 * i] = element->current_kc; outdata[4 * i] = element->current_kc;
outdata[4 * i + 1] = element->current_fcc; outdata[4 * i + 1] = element->current_fcc;
outdata[4 * i + 2] = element->current_fs_squared; outdata[4 * i + 2] = element->current_fs_squared;
......
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