From f9e4ed99b078aa872d7b31c31c3c3cbbbb07bf46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 10 Dec 2018 15:43:19 +0200 Subject: [PATCH] line21dec: If CCs are not found at the previous line, reset and search from the beginning again --- ext/closedcaption/gstline21dec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/closedcaption/gstline21dec.c b/ext/closedcaption/gstline21dec.c index d5ffbe2fd4..03bf94cf69 100644 --- a/ext/closedcaption/gstline21dec.c +++ b/ext/closedcaption/gstline21dec.c @@ -396,6 +396,11 @@ gst_line_21_decoder_scan (GstLine21Decoder * self, GstVideoFrame * frame) self->line21_offset = i; found = TRUE; break; + } else if (i == self->line21_offset) { + /* Otherwise if this was the previously probed line offset, + * reset and start searching again from the beginning */ + i = -1; + self->line21_offset = -1; } }