Ticket #861: commflag.diff

File commflag.diff, 912 bytes (added by jwestfall@…, 20 years ago)

simple patch that moves OpenFile() after InitVideo()

  • mythtv/programs/mythcommflag/ClassicCommDetector.cpp

     
    271271    if ((wereRecording) && (!stillRecording) && (secsSince < requiredHeadStart))
    272272        return false;
    273273
    274     if (nvp->OpenFile() < 0)
    275         return false;
    276 
    277274    Init();
    278275
    279276    aggressiveDetection = gContext->GetNumSetting("AggressiveCommDetect", 1);
     
    285282        return false;
    286283    }
    287284
     285    if (nvp->OpenFile() < 0)
     286    {
     287        VERBOSE(VB_IMPORTANT, "NVP: Unable to open file for FlagCommercials.");
     288        return false;
     289    }
     290
    288291    if ((commDetectMethod & COMM_DETECT_LOGO) &&
    289292        ((nvp->GetLength() == 0) ||
    290293         (nvp->GetLength() > commDetectLogoSecondsNeeded)))