diff options
author | Seungha Yang <seungha@centricular.com> | 2023-02-15 20:00:29 +0300 |
---|---|---|
committer | Seungha Yang <seungha@centricular.com> | 2023-02-15 20:23:56 +0300 |
commit | 6b15e772acfc990dff4a0366a3c7add7f125a3cf (patch) | |
tree | 884d7370b9f17325dfe87fe801a753c04da020d3 /mux | |
parent | 487d7fb26b297f74c7aba6736f0ee75762ddf98e (diff) |
fmp4mux: Ignore framerate update
like mp4mux in -good does already
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1094>
Diffstat (limited to 'mux')
-rw-r--r-- | mux/fmp4/src/fmp4mux/imp.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mux/fmp4/src/fmp4mux/imp.rs b/mux/fmp4/src/fmp4mux/imp.rs index ce0ec41f5..08c39d1be 100644 --- a/mux/fmp4/src/fmp4mux/imp.rs +++ b/mux/fmp4/src/fmp4mux/imp.rs @@ -2942,10 +2942,15 @@ impl AggregatorImpl for FMP4Mux { match query.view_mut() { QueryViewMut::Caps(q) => { - let allowed_caps = aggregator_pad + let mut allowed_caps = aggregator_pad .current_caps() .unwrap_or_else(|| aggregator_pad.pad_template_caps()); + // Allow framerate change + for s in allowed_caps.make_mut().iter_mut() { + s.remove_field("framerate"); + } + if let Some(filter_caps) = q.filter() { let res = filter_caps .intersect_with_mode(&allowed_caps, gst::CapsIntersectMode::First); |