mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
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
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue