diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-09-06 20:23:55 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-09-18 17:47:04 +0300 |
commit | 3812985a9e30c46ce6cd4991cda37e5b366c4a71 (patch) | |
tree | 4fc00f767845a383b4347433d5ddda4b1c306d92 /ext/closedcaption | |
parent | 17f0271aa0d68c4c60d094310d4af6f12a8d02de (diff) | |
download | gstreamer-plugins-bad-3812985a9e30c46ce6cd4991cda37e5b366c4a71.tar.gz |
ccextractor: Use gst_caps_new_simple() instead of gst_caps_from_string()
Diffstat (limited to 'ext/closedcaption')
-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; } |