Ticket #2741: 2741_0.20-fixes.diff

File 2741_0.20-fixes.diff, 2.3 KB (added by Janne Grunau, 17 years ago)

same patch for 0.20-fixes

  • mythtv/libs/libmythtv/tv_rec.cpp

    diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
    index 970a849..1d41df2 100644
    a b void *TVRec::RecorderThread(void *param) 
    11721172    return NULL;
    11731173}
    11741174
    1175 bool get_use_eit(uint cardid)
     1175static bool get_use_eit(uint cardid)
    11761176{
    11771177    MSqlQuery query(MSqlQuery::InitCon());
    11781178    query.prepare(
    static bool is_dishnet_eit(int cardid) 
    12121212    return false;
    12131213}
    12141214
     1215static bool get_dvb_on_demand(uint cardid)
     1216{
     1217    MSqlQuery query(MSqlQuery::InitCon());
     1218    query.prepare(
     1219        "SELECT dvb_on_demand "
     1220        "FROM capturecard "
     1221        "WHERE cardid     = :CARDID");
     1222    query.bindValue(":CARDID", cardid);
     1223
     1224    if (!query.exec() || !query.isActive())
     1225    {
     1226        MythContext::DBError("get_dvb_on_demand", query);
     1227        return false;
     1228    }
     1229    else if (query.next())
     1230        return query.value(0).toBool();
     1231    return false;
     1232}
     1233
    12151234/** \fn TVRec::RunTV(void)
    12161235 *  \brief Event handling method, contains event loop.
    12171236 */
    void TVRec::RunTV(void) 
    13741393                        "for all sources on this card.");
    13751394                eitScanStartTime = eitScanStartTime.addYears(1);
    13761395            }
     1396            else if (get_dvb_on_demand(GetCaptureCardNum()))
     1397            {
     1398                VERBOSE(VB_EIT, LOC + "EIT scanning disabled "
     1399                        "since the card should be used only on demand.");
     1400                eitScanStartTime = eitScanStartTime.addYears(1);
     1401            }
    13771402            else
    13781403            {
    13791404                scanner->StartActiveScan(
  • mythtv/libs/libmythtv/videosource.cpp

    diff --git a/mythtv/libs/libmythtv/videosource.cpp b/mythtv/libs/libmythtv/videosource.cpp
    index a3527be..c65682e 100644
    a b class DVBOnDemand: public CheckBoxSetting, public CCSetting 
    803803        setHelpText(
    804804            QObject::tr("This option makes the backend dvb-recorder "
    805805                        "only open the card when it is actually in-use, leaving "
    806                         "it free for other programs at other times."));
     806                        "it free for other programs at other times "
     807                        "(only recording and live-tv qualify as in-use, "
     808                        "the EIT scan does not)."));
    807809    };
    808810};
    809811