mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-22 17:08:18 +00:00
fmp4mux: Check for force-keyunit events on both pads in the multistream test
This commit is contained in:
parent
4bc0ae09fa
commit
0206178279
1 changed files with 19 additions and 0 deletions
|
@ -275,6 +275,25 @@ fn test_buffer_flags_multi_stream() {
|
||||||
count: 0
|
count: 0
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let ev = loop {
|
||||||
|
let ev = h2.pull_upstream_event().unwrap();
|
||||||
|
if ev.type_() != gst::EventType::Reconfigure
|
||||||
|
&& ev.type_() != gst::EventType::Latency
|
||||||
|
{
|
||||||
|
break ev;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
assert_eq!(ev.type_(), gst::EventType::CustomUpstream);
|
||||||
|
assert_eq!(
|
||||||
|
gst_video::UpstreamForceKeyUnitEvent::parse(&ev).unwrap(),
|
||||||
|
gst_video::UpstreamForceKeyUnitEvent {
|
||||||
|
running_time: Some(gst::ClockTime::from_seconds(5)),
|
||||||
|
all_headers: true,
|
||||||
|
count: 0
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue