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!( 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) {