mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-15 14:52:04 +00:00
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/1161>
This commit is contained in:
parent
5c3b5842b0
commit
fe15b06ab6
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue