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:
Sebastian Dröge 2019-07-09 19:24:08 +03:00
parent 13ce2da387
commit a0c918de71

View file

@ -469,10 +469,10 @@ impl BaseSrcImpl for NdiVideoSrc {
gst_debug!(
self.cat,
obj: element,
"No video frame received, sending empty buffer"
"No video frame received, retry"
);
let buffer = gst::Buffer::with_size(0).unwrap();
return Ok(buffer);
count_frame_none += 1;
continue;
}
if time >= (video_frame.timestamp as u64) {