Anyone want to weigh in on the semantics of frame_pending()?
frame_pending was originally used to indicate if there was still a frame
waiting in the kernel's buffer for V4L2 video capture devices. It extended
well to DV buffer.
It is sometimes used in the following way:
while(buffer.frame_pending())
{
//Burn frames
buffer.put_frame(buffer.get_frame());
}
to reduce latency on live feeds. This doesn't work with the new
ServerPushJpegBuffer, snice it can't tell if there is a frame available.
Flushing code will simply keep on flushing forver. Note that flushing code
also breaks on recorded video. It also gets very strange when DiskBuffer or
VideoFileBuffer have the unset_pending flag set.