diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2023-03-24 03:34:09 +0300 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2023-03-24 19:51:01 +0300 |
commit | 82ccba4267550f4b4514b21521efd5f9a9b07f2e (patch) | |
tree | 0fbb29b5015584ad1eafc5bacf11d7b076cc2d1a /video/closedcaption | |
parent | f18f69809a54802e059f217518529a22eec2c12e (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/1146>
Diffstat (limited to 'video/closedcaption')
-rw-r--r-- | video/closedcaption/src/tttocea608/imp.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs index 3cc2a6e65..ec710d4d1 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); |