mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 13:01:07 +00:00
mp4mux: Ignore framerate update
like mp4mux in -good does already Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1094>
This commit is contained in:
parent
6b15e772ac
commit
59222f7a35
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue