Ticket #2121: lucaspatch1

File lucaspatch1, 887 bytes (added by lucas@…, 19 years ago)

patch that might solve the problem.

Line 
1Index: ClassicCommDetector.cpp
2===================================================================
3--- ClassicCommDetector.cpp (revision 10687)
4+++ ClassicCommDetector.cpp (working copy)
5@@ -242,6 +242,8 @@
6 if ((wereRecording) && (!stillRecording) && (secsSince < requiredHeadStart))
7 return false;
8
9+ VERBOSE(VB_COMMFLAG, "Made it past short recordings check");
10+
11 aggressiveDetection = gContext->GetNumSetting("AggressiveCommDetect", 1);
12
13 if (!nvp->InitVideo())
14@@ -252,10 +254,7 @@
15 }
16 nvp->SetCaptionsEnabled(false);
17
18- unsigned int length = static_cast<unsigned int>(nvp->GetLength());
19- if ((commDetectMethod & COMM_DETECT_LOGO) &&
20- ((length == 0) ||
21- (length > logoDetector->getRequiredAvailableBufferForSearch())))
22+ if (commDetectMethod & COMM_DETECT_LOGO)
23 {
24 emit statusUpdate("Searching for Logo");
25