summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTOA Developer <justin@boris>2018-03-09 12:01:39 +0100
committerTOA Developer <justin@boris>2018-03-09 12:01:39 +0100
commit05504c877125c719b5846d769d8077107eab8d49 (patch)
tree581e36780d253af31efea27333f669aa017723ed
parent4aec59806977e7ee1cb5f837741c6ac47e267330 (diff)
WIP FIXUP CCEXTRACTORHEADmaster
-rw-r--r--gst/closedcaption/gstclosedcaption.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gst/closedcaption/gstclosedcaption.c b/gst/closedcaption/gstclosedcaption.c
index 3f3772c20..15e54fa90 100644
--- a/gst/closedcaption/gstclosedcaption.c
+++ b/gst/closedcaption/gstclosedcaption.c
@@ -195,6 +195,17 @@ gst_cc_extractor_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
GST_LOG_OBJECT (pad, "received %s event: %" GST_PTR_FORMAT,
GST_EVENT_TYPE_NAME (event), event);
+ switch (GST_EVENT_TYPE (event)) {
+ case GST_EVENT_EOS:
+ case GST_EVENT_FLUSH_START:
+ case GST_EVENT_FLUSH_STOP:
+ /* Also forward to the caption pad if present */
+ if (filter->captionpad)
+ gst_pad_push_event (filter->captionpad, gst_event_ref (event));
+ break;
+ default:
+ break;
+ }
return gst_pad_event_default (pad, parent, event);
}
@@ -236,7 +247,7 @@ gst_cc_extractor_handle_meta (GstCCExtractor * filter, GstBuffer * buf,
break;
case GST_VIDEO_CAPTION_TYPE_CEA708_CDP:
caption_caps =
- gst_caps_from_string ("closedcaption/x-cea-608,format=(string)cdp");
+ gst_caps_from_string ("closedcaption/x-cea-708,format=(string)cdp");
break;
default:
break;