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

@ -25,7 +25,7 @@ int AnalysisThread::run() {
monitor->get_ref_image(); monitor->get_ref_image();
Debug(2, "THREAD: after Getting ref image"); Debug(2, "THREAD: after Getting ref image");
while( !terminate ) { while ( !terminate ) {
// Process the next image // Process the next image
//sigprocmask(SIG_BLOCK, &block_set, 0); //sigprocmask(SIG_BLOCK, &block_set, 0);
@ -39,6 +39,7 @@ int AnalysisThread::run() {
} }
} }
Debug(2, "Analyzing");
if ( !monitor->Analyse() ) { if ( !monitor->Analyse() ) {
Debug(2, "Sleeping for %d", monitor->Active()?ZM_SAMPLE_RATE:ZM_SUSPENDED_RATE); Debug(2, "Sleeping for %d", monitor->Active()?ZM_SAMPLE_RATE:ZM_SUSPENDED_RATE);
usleep(10*(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; mFormatContext->interrupt_callback.opaque = this;
ret = avformat_open_input(&mFormatContext, mPath.c_str(), NULL, &opts); ret = avformat_open_input(&mFormatContext, mPath.c_str(), NULL, &opts);
Debug(1, "Have %d from open_input", ret);
if ( ret != 0 ) if ( ret != 0 )
#endif #endif
{ {
@ -320,6 +321,7 @@ int FfmpegCamera::OpenFfmpeg() {
} }
av_dict_free(&opts); av_dict_free(&opts);
Debug(1, "Finding stream info");
#if !LIBAVFORMAT_VERSION_CHECK(53, 6, 0, 6, 0) #if !LIBAVFORMAT_VERSION_CHECK(53, 6, 0, 6, 0)
ret = av_find_stream_info(mFormatContext); ret = av_find_stream_info(mFormatContext);
#else #else