improve ImageBufferCount too small message

This commit is contained in:
Isaac Connor 2018-12-03 11:02:45 -05:00
parent ddd2e24dcb
commit 23124d634c
1 changed files with 3 additions and 1 deletions

View File

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