Ticket #10793: commflag-options.patch

File commflag-options.patch, 1003 bytes (added by Mark Spieth, 7 years ago)
  • mythtv/programs/mythcommflag/main.cpp

    commit 50229f163ba4475271b5c28d2ddb3ea1cbe49458
    Author: Mark Spieth <mspieth@digivation.com.au>
    Date:   Sun May 27 17:40:48 2012 +1000
    
        commflag mode options fix
    
    diff --git a/mythtv/programs/mythcommflag/main.cpp b/mythtv/programs/mythcommflag/main.cpp
    index 74d161f..bbba950 100644
    a b static int FlagCommercials(ProgramInfo *program_info, int jobid, 
    774774                         << "'" << endl;
    775775                    return GENERIC_EXIT_INVALID_CMDLINE;
    776776                }
     777                if (commDetectMethod == COMM_DETECT_UNINIT)
     778                    commDetectMethod = COMM_DETECT_OFF;
    777779
    778780                // append flag method to list
    779781                commDetectMethod = (SkipTypes) ((int)commDetectMethod
    780                                              || (int)skipTypes->value(val));
     782                                             | (int)skipTypes->value(val));
    781783            }
    782784
    783785        }