Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2023-03-24 03:34:09 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2023-04-05 18:12:39 +0300
commit3b27132bca19d1f83c847eb0dacf4a8a80ca1227 (patch)
treeeaf4496a8ce5cc118951dd6c7b2d9c48e655420a /video
parent0ba8d8b856ce61cc6bf390ead7d892ce95cb5d59 (diff)
tttocea608: fix pushing unfixed caps downstream
Allowed downstream caps might hold multiple structures, simply fixating the first structure is not enough, tttocea608 must also create caps with a single structure from there (or remove the remaining structures, but new caps seems cleaner) Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1160>
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/tttocea608/imp.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs
index 3cc2a6e6..ec710d4d 100644
--- a/video/closedcaption/src/tttocea608/imp.rs
+++ b/video/closedcaption/src/tttocea608/imp.rs
@@ -864,6 +864,8 @@ impl TtToCea608 {
);
s.fixate();
+ let caps = gst::Caps::builder_full().structure(s.to_owned()).build();
+
let mut state = self.state.lock().unwrap();
state.framerate = s.get::<gst::Fraction>("framerate").unwrap();
@@ -873,7 +875,7 @@ impl TtToCea608 {
gst::debug!(CAT, obj: pad, "Pushing caps {}", caps);
- let new_event = gst::event::Caps::new(&downstream_caps);
+ let new_event = gst::event::Caps::new(&caps);
drop(state);