From 59222f7a35469e45c0c44b7ec5f5e82658dbc7f8 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 16 Feb 2023 03:42:15 +0900 Subject: [PATCH] mp4mux: Ignore framerate update like mp4mux in -good does already Part-of: --- mux/mp4/src/mp4mux/imp.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mux/mp4/src/mp4mux/imp.rs b/mux/mp4/src/mp4mux/imp.rs index 94988d6a..4ae19dc8 100644 --- a/mux/mp4/src/mp4mux/imp.rs +++ b/mux/mp4/src/mp4mux/imp.rs @@ -1097,10 +1097,15 @@ impl AggregatorImpl for MP4Mux { 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);