Ticket #7136: mythtv-7136-remove_GeneratePreviewRemotely_setting.patch

File mythtv-7136-remove_GeneratePreviewRemotely_setting.patch, 3.1 KB (added by sphery, 15 years ago)

Removes the "Generate preview image remotely" and does all preview generation from the backend process.

  • programs/mythfrontend/playbackbox.cpp

    old new  
    316316    m_watchListBlackOut  = gContext->GetNumSetting("PlaybackWLBlackOut", 2);
    317317    m_groupnameAsAllProg = gContext->GetNumSetting("DispRecGroupAsAllProg", 0);
    318318    m_previewFromBookmark = gContext->GetNumSetting("PreviewFromBookmark");
    319     m_previewGeneratorMode =
    320             gContext->GetNumSetting("GeneratePreviewRemotely", 0) ?
    321             PreviewGenerator::kRemote : PreviewGenerator::kLocalAndRemote;
    322319
    323320    bool displayCat  = gContext->GetNumSetting("DisplayRecGroupIsCategory", 0);
    324321
     
    39563953        uint attempts = IncPreviewGeneratorAttempts(filename);
    39573954        if (attempts < PreviewGenState::maxAttempts)
    39583955        {
    3959             PreviewGenerator::Mode mode =
    3960                 (PreviewGenerator::Mode) m_previewGeneratorMode;
    3961             SetPreviewGenerator(filename, new PreviewGenerator(pginfo, mode));
     3956            SetPreviewGenerator(filename, new PreviewGenerator(pginfo,
     3957                                PreviewGenerator::kRemote));
    39623958        }
    39633959        else if (attempts == PreviewGenState::maxAttempts)
    39643960        {
  • programs/mythfrontend/globalsettings.cpp

    old new  
    21672167    return gc;
    21682168}
    21692169
    2170 static HostCheckBox *GeneratePreviewRemotely()
    2171 {
    2172     HostCheckBox *gc = new HostCheckBox("GeneratePreviewRemotely");
    2173     gc->setLabel(QObject::tr("Generate preview image remotely"));
    2174     gc->setValue(false);
    2175     gc->setHelpText(
    2176         QObject::tr(
    2177             "If you have a very slow frontend you can enable this to "
    2178             "always have a backend server generate preview images."));
    2179     return gc;
    2180 }
    2181 
    21822170static HostCheckBox *PlayBoxTransparency()
    21832171{
    21842172    HostCheckBox *gc = new HostCheckBox("PlayBoxTransparency");
     
    45564544                   QString(" (%1/%2)").arg(++i).arg(total));
    45574545    pbox->addChild(PlayBoxOrdering());
    45584546    pbox->addChild(PlayBoxEpisodeSort());
    4559     pbox->addChild(GeneratePreviewRemotely());
    45604547    pbox->addChild(PreviewPixmapOffset());
    45614548    pbox->addChild(PreviewFromBookmark());
    45624549    pbox->addChild(PlaybackPreview());
  • programs/mythfrontend/playbackbox.h

    old new  
    436436
    437437    // Preview Pixmap Variables ///////////////////////////////////////////////
    438438    bool                m_previewFromBookmark;
    439     uint                m_previewGeneratorMode;
    440439    QMap<QString,QDateTime> m_previewFileTS;
    441440    bool                m_previewSuspend;
    442441    mutable QMutex      m_previewGeneratorLock;