Add warning if EAGAIN in encoder

This most likely means there is buffering in the encoder, pose will be
out of sync with image data and we will have additional latency.
This commit is contained in:
Patrick Nicolas
2023-06-26 22:09:48 +02:00
parent 5c6a08ce43
commit 47872011b5
2 changed files with 3 additions and 0 deletions
@@ -92,6 +92,7 @@ void VideoEncoderFFMPEG::Encode(int index, bool idr, std::chrono::steady_clock::
}
if (err == AVERROR(EAGAIN))
{
U_LOG_W("EAGAIN in encoder %d", stream_idx);
return;
}
if (err)