Ticket #2121: commdetectordebug.diff
File commdetectordebug.diff, 1.9 KB (added by , 18 years ago) |
---|
-
programs/mythcommflag/ClassicCommDetector.cpp
200 200 int requiredHeadStart = requiredBuffer; 201 201 bool wereRecording = stillRecording; 202 202 203 VERBOSE(VB_IMPORTANT, QString("COMMFLAG: reqcuiredHeadStart = %1").arg(requiredHeadStart)); 203 204 emit statusUpdate("Building Head Start Buffer"); 204 205 secsSince = recordingStartedAt.secsTo(QDateTime::currentDateTime()); 206 VERBOSE(VB_IMPORTANT, QString("COMMFLAG: secsSince = %1").arg(secsSince)); 205 207 while (stillRecording && (secsSince < requiredHeadStart)) 206 208 { 207 209 emit breathe(); … … 210 212 211 213 sleep(2); 212 214 secsSince = recordingStartedAt.secsTo(QDateTime::currentDateTime()); 215 VERBOSE(VB_IMPORTANT, QString("COMMFLAG: secsSince = %1").arg(secsSince)); 213 216 } 214 217 215 218 if (nvp->OpenFile() < 0) … … 223 226 commDetectBorder, horizSpacing, vertSpacing); 224 227 225 228 requiredHeadStart += max(0,recordingStartedAt.secsTo(startedAt)); 229 VERBOSE(VB_IMPORTANT, QString("COMMFLAG: reqcuiredHeadStart = %1").arg(requiredHeadStart)); 226 230 requiredHeadStart += logoDetector->getRequiredAvailableBufferForSearch(); 231 VERBOSE(VB_IMPORTANT, QString("COMMFLAG: reqcuiredHeadStart = %1").arg(requiredHeadStart)); 227 232 228 233 emit statusUpdate("Building Logo Detection Buffer"); 229 234 secsSince = recordingStartedAt.secsTo(QDateTime::currentDateTime()); 235 VERBOSE(VB_IMPORTANT, QString("COMMFLAG: secsSince = %1").arg(secsSince)); 230 236 while (stillRecording && (secsSince < requiredHeadStart)) 231 237 { 232 238 emit breathe(); … … 235 241 236 242 sleep(2); 237 243 secsSince = recordingStartedAt.secsTo(QDateTime::currentDateTime()); 244 VERBOSE(VB_IMPORTANT, QString("COMMFLAG: secsSince = %1").arg(secsSince)); 238 245 } 239 246 } 240 247