Opened 3 years ago

Last modified 3 years ago

#12793 new Developer Task

add configuration widget for "dvb_eitscan" to the HDHR configuration

Reported by: Karl Egly Owned by: Karl Egly
Priority: minor Milestone: unknown
Component: MythTV - HDHomeRun Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The setting already works, but can only be set by bypassing mythtv-setup. From mythtv/libs/libmythtv/videosource.cpp

class DVBEITScan : public CheckBoxSetting, public CaptureCardDBStorage
{
  public:
    DVBEITScan(const CaptureCard &parent) :
        CheckBoxSetting(this),
        CaptureCardDBStorage(this, parent, "dvb_eitscan")
    {
        setLabel(QObject::tr("Use DVB card for active EIT scan"));
        setValue(true);
        setHelpText(
            QObject::tr("If enabled, activate active scanning for "
                        "program data (EIT). When this option is enabled "
                        "the DVB card is constantly in-use."));
    };
};
DVBExtra::DVBExtra(DVBConfigurationGroup &parent)
    : count(new InstanceCount(parent.parent))
{
    VerticalConfigurationGroup* rec = new VerticalConfigurationGroup(false);
    rec->setLabel(QObject::tr("Recorder Options"));
    rec->setUseLabel(false);

    rec->addChild(count);
    rec->addChild(new DVBNoSeqStart(parent.parent));
    rec->addChild(new DVBOnDemand(parent.parent));
    rec->addChild(new DVBEITScan(parent.parent));
    rec->addChild(new DVBTuningDelay(parent.parent));

    addChild(rec);
}

likely can simply be added here

HDHomeRunExtra::HDHomeRunExtra(HDHomeRunConfigurationGroup &parent) :
    count(new InstanceCount(parent.parent))
{
    VerticalConfigurationGroup* rec = new VerticalConfigurationGroup(false);
    rec->setLabel(QObject::tr("Recorder Options"));
    rec->setUseLabel(false);

    rec->addChild(new SignalTimeout(parent.parent, 1000, 250));
    rec->addChild(new ChannelTimeout(parent.parent, 3000, 1750));
    rec->addChild(count);

    addChild(rec);
}

not changing the default behavior would be nice

Change History (1)

comment:1 Changed 3 years ago by Karl Dietz <dekarl@…>

In e1c70e58f7ffaa974ab70b67ff4a8e2d86e8bb8d/mythtv:

Add configuration widget for dvb_eitscan to HD HomeRun? devices

Defaults to enabled as EIT scan is usually configured in the video source.

Refs #12793

Note: See TracTickets for help on using tickets.