Ticket #2840: mythdvd-mtdautostart.diff

File mythdvd-mtdautostart.diff, 1.3 KB (added by devel@…, 20 years ago)

Patch to add MTDautostart option

  • mythplugins/mythdvd/mythdvd/settings.cpp

     
    259259    return gc;
    260260}
    261261
     262static HostCheckBox *MTDautostart()
     263{
     264    HostCheckBox *gc = new HostCheckBox("MTDautostart");
     265    gc->setLabel(QObject::tr("Autostart MythTranscodeDaemon"));
     266    gc->setValue(true);
     267    gc->setHelpText(QObject::tr("If set, mythdvd will try and autostart "
     268                    "the transcode daemon. "));
     269    return gc;
     270}
    262271
    263272static HostSpinBox *MTDNiceLevel()
    264273{
     
    314323    mtdsettings->addChild(MTDLogFlag());
    315324    mtdsettings->addChild(MTDac3Flag());
    316325    mtdsettings->addChild(MTDxvidFlag());
     326    mtdsettings->addChild(MTDautostart());
    317327    addChild(mtdsettings);
    318328}
    319329
  • mythplugins/mythdvd/mythdvd/dvdripbox.cpp

     
    130130
    131131    setContext(0);
    132132    createSocket();
    133     connectToMtd(false);
     133    connectToMtd(gContext->GetSetting("MTDAutostart"));
    134134
    135135    //
    136136    //  Create (but do not open) the DVD probing object