diff options
-rw-r--r-- | ext/closedcaption/gstccextractor.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/ext/closedcaption/gstccextractor.c b/ext/closedcaption/gstccextractor.c index 5a83aa2ec..e2b351c63 100644 --- a/ext/closedcaption/gstccextractor.c +++ b/ext/closedcaption/gstccextractor.c @@ -250,23 +250,20 @@ gst_cc_extractor_handle_meta (GstCCExtractor * filter, GstBuffer * buf, GST_DEBUG_OBJECT (filter, "Creating new caption pad"); switch (meta->caption_type) { case GST_VIDEO_CAPTION_TYPE_CEA608_RAW: - caption_caps = - gst_caps_from_string ("closedcaption/x-cea-608,format=(string)raw"); + caption_caps = gst_caps_new_simple ("closedcaption/x-cea-608", + "format", G_TYPE_STRING, "raw", NULL); break; case GST_VIDEO_CAPTION_TYPE_CEA608_IN_CEA708_RAW: - caption_caps = - gst_caps_from_string - ("closedcaption/x-cea-608,format=(string)cc_data"); + caption_caps = gst_caps_new_simple ("closedcaption/x-cea-608", + "format", G_TYPE_STRING, "cc_data", NULL); break; case GST_VIDEO_CAPTION_TYPE_CEA708_RAW: - caption_caps = - gst_caps_from_string - ("closedcaption/x-cea-708,format=(string)cc_data"); + caption_caps = gst_caps_new_simple ("closedcaption/x-cea-708", + "format", G_TYPE_STRING, "cc_data", NULL); break; case GST_VIDEO_CAPTION_TYPE_CEA708_CDP: - caption_caps = - gst_caps_from_string ("closedcaption/x-cea-708,format=(string)cdp"); - break; + caption_caps = gst_caps_new_simple ("closedcaption/x-cea-708", + "format", G_TYPE_STRING, "cdp", NULL); default: break; } |