mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ccextractor: Handle multiple caption metas per buffer
This commit is contained in:
parent
23b0172ee9
commit
7ba9493ff1
1 changed files with 5 additions and 4 deletions
|
@ -349,12 +349,13 @@ gst_cc_extractor_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
||||||
GstCCExtractor *filter = (GstCCExtractor *) parent;
|
GstCCExtractor *filter = (GstCCExtractor *) parent;
|
||||||
GstFlowReturn flow = GST_FLOW_OK;
|
GstFlowReturn flow = GST_FLOW_OK;
|
||||||
GstVideoCaptionMeta *cc_meta;
|
GstVideoCaptionMeta *cc_meta;
|
||||||
|
gpointer iter = NULL;
|
||||||
|
|
||||||
cc_meta = gst_buffer_get_video_caption_meta (buf);
|
while ((cc_meta =
|
||||||
if (cc_meta)
|
(GstVideoCaptionMeta *) gst_buffer_iterate_meta_filtered (buf, &iter,
|
||||||
|
GST_VIDEO_CAPTION_META_API_TYPE)) && flow == GST_FLOW_OK) {
|
||||||
flow = gst_cc_extractor_handle_meta (filter, buf, cc_meta);
|
flow = gst_cc_extractor_handle_meta (filter, buf, cc_meta);
|
||||||
else
|
}
|
||||||
GST_DEBUG_OBJECT (filter, "No CC meta on buffer");
|
|
||||||
|
|
||||||
/* If there's an issue handling the CC, return immediately */
|
/* If there's an issue handling the CC, return immediately */
|
||||||
if (flow != GST_FLOW_OK) {
|
if (flow != GST_FLOW_OK) {
|
||||||
|
|
Loading…
Reference in a new issue