mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-02 08:21:01 +00:00
Never send an empty buffer but simply retry
Sending an empty buffer will cause downstream to fail as it has the wrong size.
This commit is contained in:
parent
13ce2da387
commit
a0c918de71
1 changed files with 3 additions and 3 deletions
|
@ -469,10 +469,10 @@ impl BaseSrcImpl for NdiVideoSrc {
|
||||||
gst_debug!(
|
gst_debug!(
|
||||||
self.cat,
|
self.cat,
|
||||||
obj: element,
|
obj: element,
|
||||||
"No video frame received, sending empty buffer"
|
"No video frame received, retry"
|
||||||
);
|
);
|
||||||
let buffer = gst::Buffer::with_size(0).unwrap();
|
count_frame_none += 1;
|
||||||
return Ok(buffer);
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if time >= (video_frame.timestamp as u64) {
|
if time >= (video_frame.timestamp as u64) {
|
||||||
|
|
Loading…
Reference in a new issue