Actually say how big the ImageBufferCOunt should be

This commit is contained in:
Isaac Connor 2018-10-17 17:19:27 -04:00
parent b0078fb1d9
commit 17726bbe38
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,7 @@ int FfmpegCamera::CaptureAndRecord( Image &image, timeval recording, char* event
if ( keyframe ) { if ( keyframe ) {
Debug(3, "Clearing queue"); Debug(3, "Clearing queue");
if ( packetqueue->packet_count(mVideoStreamId) >= monitor->GetImageBufferCount() ) { if ( packetqueue->packet_count(mVideoStreamId) >= monitor->GetImageBufferCount() ) {
Warning("ImageBufferCount is too small. Either increase it or decrease time between keyframes"); Warning("ImageBufferCount is too small. Needs to be at least %d. Either increase it or decrease time between keyframes", packetqueue->packet_count(mVideoStreamId) );
} }
packetqueue->clearQueue(monitor->GetPreEventCount(), mVideoStreamId); packetqueue->clearQueue(monitor->GetPreEventCount(), mVideoStreamId);