add Debug
This commit is contained in:
parent
c0ab8bf90d
commit
d21c04e5dc
|
@ -25,7 +25,7 @@ int AnalysisThread::run() {
|
|||
monitor->get_ref_image();
|
||||
Debug(2, "THREAD: after Getting ref image");
|
||||
|
||||
while( !terminate ) {
|
||||
while ( !terminate ) {
|
||||
// Process the next image
|
||||
//sigprocmask(SIG_BLOCK, &block_set, 0);
|
||||
|
||||
|
@ -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));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue