mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-02 00:11:01 +00:00
Only consider timeouts if configure bigger than 0
Configuring 0 will never time out.
This commit is contained in:
parent
9d4e427e14
commit
3ea203825a
1 changed files with 2 additions and 2 deletions
|
@ -907,7 +907,7 @@ impl Receiver<VideoReceiver> {
|
||||||
);
|
);
|
||||||
return Err(gst::FlowError::Error);
|
return Err(gst::FlowError::Error);
|
||||||
}
|
}
|
||||||
Ok(None) if timer.elapsed().as_millis() >= timeout as u128 => {
|
Ok(None) if timeout > 0 && timer.elapsed().as_millis() >= timeout as u128 => {
|
||||||
gst_debug!(self.0.cat, obj: element, "Timed out -- assuming EOS",);
|
gst_debug!(self.0.cat, obj: element, "Timed out -- assuming EOS",);
|
||||||
return Err(gst::FlowError::Eos);
|
return Err(gst::FlowError::Eos);
|
||||||
}
|
}
|
||||||
|
@ -1335,7 +1335,7 @@ impl Receiver<AudioReceiver> {
|
||||||
);
|
);
|
||||||
return Err(gst::FlowError::Error);
|
return Err(gst::FlowError::Error);
|
||||||
}
|
}
|
||||||
Ok(None) if timer.elapsed().as_millis() >= timeout as u128 => {
|
Ok(None) if timeout > 0 && timer.elapsed().as_millis() >= timeout as u128 => {
|
||||||
gst_debug!(self.0.cat, obj: element, "Timed out -- assuming EOS",);
|
gst_debug!(self.0.cat, obj: element, "Timed out -- assuming EOS",);
|
||||||
return Err(gst::FlowError::Eos);
|
return Err(gst::FlowError::Eos);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue