Ticket #7136: mythtv-7136-remove_GeneratePreviewRemotely_setting.patch
File mythtv-7136-remove_GeneratePreviewRemotely_setting.patch, 3.1 KB (added by , 15 years ago) |
---|
-
programs/mythfrontend/playbackbox.cpp
old new 316 316 m_watchListBlackOut = gContext->GetNumSetting("PlaybackWLBlackOut", 2); 317 317 m_groupnameAsAllProg = gContext->GetNumSetting("DispRecGroupAsAllProg", 0); 318 318 m_previewFromBookmark = gContext->GetNumSetting("PreviewFromBookmark"); 319 m_previewGeneratorMode =320 gContext->GetNumSetting("GeneratePreviewRemotely", 0) ?321 PreviewGenerator::kRemote : PreviewGenerator::kLocalAndRemote;322 319 323 320 bool displayCat = gContext->GetNumSetting("DisplayRecGroupIsCategory", 0); 324 321 … … 3956 3953 uint attempts = IncPreviewGeneratorAttempts(filename); 3957 3954 if (attempts < PreviewGenState::maxAttempts) 3958 3955 { 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)); 3962 3958 } 3963 3959 else if (attempts == PreviewGenState::maxAttempts) 3964 3960 { -
programs/mythfrontend/globalsettings.cpp
old new 2167 2167 return gc; 2168 2168 } 2169 2169 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 2182 2170 static HostCheckBox *PlayBoxTransparency() 2183 2171 { 2184 2172 HostCheckBox *gc = new HostCheckBox("PlayBoxTransparency"); … … 4556 4544 QString(" (%1/%2)").arg(++i).arg(total)); 4557 4545 pbox->addChild(PlayBoxOrdering()); 4558 4546 pbox->addChild(PlayBoxEpisodeSort()); 4559 pbox->addChild(GeneratePreviewRemotely());4560 4547 pbox->addChild(PreviewPixmapOffset()); 4561 4548 pbox->addChild(PreviewFromBookmark()); 4562 4549 pbox->addChild(PlaybackPreview()); -
programs/mythfrontend/playbackbox.h
old new 436 436 437 437 // Preview Pixmap Variables /////////////////////////////////////////////// 438 438 bool m_previewFromBookmark; 439 uint m_previewGeneratorMode;440 439 QMap<QString,QDateTime> m_previewFileTS; 441 440 bool m_previewSuspend; 442 441 mutable QMutex m_previewGeneratorLock;