mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 13:31:00 +00:00
onvifmetadataparse: Start source pad task on StreamStart if needed
Otherwise receiving StreamStart after Eos might keep the source pad task paused and no new data is ever pushed downstream.
This commit is contained in:
parent
86a19e3765
commit
c4d2f4a60a
1 changed files with 5 additions and 0 deletions
|
@ -859,6 +859,11 @@ impl OnvifMetadataParse {
|
|||
let mut state = self.state.lock().unwrap();
|
||||
|
||||
match ev {
|
||||
gst::EventView::StreamStart(_) => {
|
||||
// Start task again if needed in case we previously went EOS and paused the
|
||||
// task because of that.
|
||||
let _ = Self::src_start_task(element, &self.srcpad);
|
||||
}
|
||||
gst::EventView::Segment(ev) => {
|
||||
match ev.segment().downcast_ref::<gst::ClockTime>().cloned() {
|
||||
Some(mut segment) => {
|
||||
|
|
Loading…
Reference in a new issue