Ticket #2840: mythvideo-mtdautostart-180707.diff

File mythvideo-mtdautostart-180707.diff, 1.5 KB (added by devel@…, 17 years ago)

Updated patch for latest svn.

  • mythplugins/mythvideo/mythvideo/dvdripbox.cpp

     
    132132
    133133    setContext(0);
    134134    createSocket();
    135     connectToMtd(false);
     135    connectToMtd(gContext->GetSetting("MTDAutostart"));
    136136
    137137    //
    138138    //  Create (but do not open) the DVD probing object
  • mythplugins/mythvideo/mythvideo/globalsettings.cpp

     
    452452    return gc;
    453453}
    454454
     455static HostCheckBox *MTDautostart()
     456{
     457    HostCheckBox *gc = new HostCheckBox("MTDautostart");
     458    gc->setLabel(QObject::tr("Autostart transcode Daemon (MTD)"));
     459    gc->setValue(true);
     460    gc->setHelpText(QObject::tr("If set, mythdvd will try and autostart "
     461                    "the transcode daemon. "));
     462    return gc;
     463}
     464
    455465HostSpinBox *MTDPortNumber()
    456466{
    457467    HostSpinBox *gc = new HostSpinBox("MTDPort", 1024, 65535, 1);
     
    639649    VerticalConfigurationGroup *mtdsettings =
    640650            new VerticalConfigurationGroup(false);
    641651    mtdsettings->setLabel(QObject::tr("MTD Settings"));
     652    mtdsettings->addChild(MTDautostart());
    642653    mtdsettings->addChild(MTDPortNumber());
    643654    mtdsettings->addChild(MTDNiceLevel());
    644655    mtdsettings->addChild(MTDConcurrentTranscodes());