decklinkvideosrc: Search from line 1 again if we didn't find closed captions at the same line as before
This commit is contained in:
parent
aa3d7de98b
commit
2d0243fc68
@ -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)
|
if (!found)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user