Ticket #7136: mythtv-7136-remove_GeneratePreviewRemotely_setting.2.patch

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

Updated patch for playbackboxhelper changes

  • programs/mythfrontend/globalsettings.cpp

    old new  
    21912191    return gc;
    21922192}
    21932193
    2194 static HostCheckBox *GeneratePreviewRemotely()
    2195 {
    2196     HostCheckBox *gc = new HostCheckBox("GeneratePreviewRemotely");
    2197     gc->setLabel(QObject::tr("Generate preview image remotely"));
    2198     gc->setValue(false);
    2199     gc->setHelpText(
    2200         QObject::tr(
    2201             "If you have a very slow frontend you can enable this to "
    2202             "always have a backend server generate preview images."));
    2203     return gc;
    2204 }
    2205 
    22062194static HostCheckBox *PlayBoxTransparency()
    22072195{
    22082196    HostCheckBox *gc = new HostCheckBox("PlayBoxTransparency");
     
    43794367                   QString(" (%1/%2)").arg(++i).arg(total));
    43804368    pbox->addChild(PlayBoxOrdering());
    43814369    pbox->addChild(PlayBoxEpisodeSort());
    4382     pbox->addChild(GeneratePreviewRemotely());
    43834370    pbox->addChild(PreviewPixmapOffset());
    43844371    pbox->addChild(PlaybackPreview());
    43854372    pbox->addChild(HWAccelPlaybackPreview());
  • programs/mythfrontend/playbackboxhelper.h

    old new  
    9494
    9595    // Preview Pixmap Variables ///////////////////////////////////////////////
    9696    mutable QMutex      m_previewGeneratorLock;
    97     uint                m_previewGeneratorMode;
    9897    FileTimeStampMap    m_previewFileTS;
    9998    bool                m_previewSuspend;
    10099    PreviewMap          m_previewGenerator;
  • programs/mythfrontend/playbackboxhelper.cpp

    old new  
    200200    // Preview Image Variables
    201201    m_previewGeneratorRunning(0), m_previewGeneratorMaxThreads(2)
    202202{
    203     m_previewGeneratorMode =
    204         gContext->GetNumSetting("GeneratePreviewRemotely", 0) ?
    205         PreviewGenerator::kRemote : PreviewGenerator::kLocalAndRemote;
    206 
    207203    int idealThreads = QThread::idealThreadCount();
    208204    if (idealThreads >= 1)
    209205        m_previewGeneratorMaxThreads = idealThreads * 2;
     
    422418        uint attempts = IncPreviewGeneratorAttempts(filename);
    423419        if (attempts < PreviewGenState::maxAttempts)
    424420        {
    425             PreviewGenerator::Mode mode =
    426                 (PreviewGenerator::Mode) m_previewGeneratorMode;
    427             SetPreviewGenerator(filename, new PreviewGenerator(&pginfo, mode));
     421            SetPreviewGenerator(filename, new PreviewGenerator(&pginfo,
     422                                PreviewGenerator::kRemote));
    428423        }
    429424        else if (attempts == PreviewGenState::maxAttempts)
    430425        {