add Debug

pull/3122/head
Isaac Connor 2020-09-25 16:19:31 -04:00
parent c0ab8bf90d
commit d21c04e5dc
2 changed files with 4 additions and 1 deletions

View File

@ -39,6 +39,7 @@ int AnalysisThread::run() {
}
}
Debug(2, "Analyzing");
if ( !monitor->Analyse() ) {
Debug(2, "Sleeping for %d", monitor->Active()?ZM_SAMPLE_RATE:ZM_SUSPENDED_RATE);
usleep(10*(monitor->Active()?ZM_SAMPLE_RATE:ZM_SUSPENDED_RATE));

View File

@ -297,6 +297,7 @@ int FfmpegCamera::OpenFfmpeg() {
mFormatContext->interrupt_callback.opaque = this;
ret = avformat_open_input(&mFormatContext, mPath.c_str(), NULL, &opts);
Debug(1, "Have %d from open_input", ret);
if ( ret != 0 )
#endif
{
@ -320,6 +321,7 @@ int FfmpegCamera::OpenFfmpeg() {
}
av_dict_free(&opts);
Debug(1, "Finding stream info");
#if !LIBAVFORMAT_VERSION_CHECK(53, 6, 0, 6, 0)
ret = av_find_stream_info(mFormatContext);
#else