diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-01-15 23:57:14 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-01-15 23:58:44 +0300 |
commit | 6132788b02b38b5f0d0019f40a66a52e2d33177e (patch) | |
tree | e83ba65974bf4533ac6cb077cc65420cb08db036 /video/closedcaption | |
parent | 0c954135a34c16e62fa9a676c6ab165b2428a5f6 (diff) |
Update for caps/structure-related string API changes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1048>
Diffstat (limited to 'video/closedcaption')
-rw-r--r-- | video/closedcaption/src/cea608overlay/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs index 13a03b56f..b6a78f7fd 100644 --- a/video/closedcaption/src/cea608overlay/imp.rs +++ b/video/closedcaption/src/cea608overlay/imp.rs @@ -266,7 +266,7 @@ impl Cea608Overlay { let upstream_has_meta = caps .features(0) - .map(|f| f.contains(&gst_video::CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION)) + .map(|f| f.contains(gst_video::CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION)) .unwrap_or(false); if !upstream_has_meta { @@ -274,7 +274,7 @@ impl Cea608Overlay { let overlay_caps = caps_clone.make_mut(); if let Some(features) = overlay_caps.features_mut(0) { - features.add(&gst_video::CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION); + features.add(gst_video::CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION); let peercaps = self.srcpad.peer_query_caps(Some(&caps_clone)); downstream_accepts_meta = !peercaps.is_empty(); if downstream_accepts_meta { |