static gfloat opposite_parity_windowed_comb (GstFieldAnalysis * filter,
FieldAnalysisFields * fields);
-
static void
-gst_field_analysis_reset (GstFieldAnalysis * filter)
+gst_field_analysis_empty_queue (GstFieldAnalysis * filter)
{
if (filter->frames) {
guint length = g_queue_get_length (filter->frames);
length--;
}
}
+}
+
+static void
+gst_field_analysis_reset (GstFieldAnalysis * filter)
+{
+ gst_field_analysis_empty_queue (filter);
GST_DEBUG_OBJECT (filter, "Resetting context");
memset (filter->results, 0, 2 * sizeof (FieldAnalysis));
filter->is_telecine = FALSE;
}
}
- gst_field_analysis_reset (filter);
+ gst_field_analysis_empty_queue (filter);
if (ret != GST_FLOW_OK) {
GST_DEBUG_OBJECT (filter,