Commit 1627347a authored by Aaron Viets's avatar Aaron Viets

lal_dqtukey: don't pass gaps downstream, since the timestamps on those gaps are wrong.

parent 7a6e8f65
Pipeline #84467 passed with stages
in 36 minutes and 10 seconds
...@@ -373,7 +373,7 @@ DEFINE_DQ_TO_TUKEY(uint, 32, double) ...@@ -373,7 +373,7 @@ DEFINE_DQ_TO_TUKEY(uint, 32, double)
*/ */
static void set_metadata(GSTLALDQTukey *element, GstBuffer *buf, guint64 outsamples, gboolean gap) { static void set_metadata(GSTLALDQTukey *element, GstBuffer *buf, guint64 outsamples) {
GST_BUFFER_OFFSET(buf) = element->next_out_offset; GST_BUFFER_OFFSET(buf) = element->next_out_offset;
element->next_out_offset += outsamples; element->next_out_offset += outsamples;
...@@ -384,10 +384,6 @@ static void set_metadata(GSTLALDQTukey *element, GstBuffer *buf, guint64 outsamp ...@@ -384,10 +384,6 @@ static void set_metadata(GSTLALDQTukey *element, GstBuffer *buf, guint64 outsamp
GST_BUFFER_FLAG_SET(buf, GST_BUFFER_FLAG_DISCONT); GST_BUFFER_FLAG_SET(buf, GST_BUFFER_FLAG_DISCONT);
element->need_discont = FALSE; element->need_discont = FALSE;
} }
if(gap)
GST_BUFFER_FLAG_SET(buf, GST_BUFFER_FLAG_GAP);
else
GST_BUFFER_FLAG_UNSET(buf, GST_BUFFER_FLAG_GAP);
} }
...@@ -835,7 +831,7 @@ static GstFlowReturn transform(GstBaseTransform *trans, GstBuffer *inbuf, GstBuf ...@@ -835,7 +831,7 @@ static GstFlowReturn transform(GstBaseTransform *trans, GstBuffer *inbuf, GstBuf
g_assert_not_reached(); g_assert_not_reached();
} }
set_metadata(element, outbuf, outmap.size / element->unit_size_out, GST_BUFFER_FLAG_IS_SET(inbuf, GST_BUFFER_FLAG_GAP)); set_metadata(element, outbuf, outmap.size / element->unit_size_out);
gst_buffer_unmap(outbuf, &outmap); gst_buffer_unmap(outbuf, &outmap);
gst_buffer_unmap(inbuf, &inmap); gst_buffer_unmap(inbuf, &inmap);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment