decklinkvideosrc: Search from line 1 again if we didn't find closed captions at the same line as before

This commit is contained in:
Sebastian Dröge 2018-11-07 17:24:35 +02:00 committed by Sebastian Dröge
parent aa3d7de98b
commit 2d0243fc68

View file

@ -870,7 +870,14 @@ extract_cc_from_vbi (GstDecklinkVideoSrc * self, GstBuffer ** buffer,
}
}
fi++;
/* If we didn't find it at the previous line, start again searching from
* line 1 onwards */
if (!found && (gint) self->last_cc_vbi_line != -1) {
self->last_cc_vbi_line = -1;
fi = 1;
} else {
fi++;
}
}
if (!found)