Ticket #7136: mythtv-7136-remove_GeneratePreviewRemotely_setting.2.patch
| File mythtv-7136-remove_GeneratePreviewRemotely_setting.2.patch, 3.1 KB (added by , 17 years ago) |
|---|
-
programs/mythfrontend/globalsettings.cpp
old new 2191 2191 return gc; 2192 2192 } 2193 2193 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 2206 2194 static HostCheckBox *PlayBoxTransparency() 2207 2195 { 2208 2196 HostCheckBox *gc = new HostCheckBox("PlayBoxTransparency"); … … 4379 4367 QString(" (%1/%2)").arg(++i).arg(total)); 4380 4368 pbox->addChild(PlayBoxOrdering()); 4381 4369 pbox->addChild(PlayBoxEpisodeSort()); 4382 pbox->addChild(GeneratePreviewRemotely());4383 4370 pbox->addChild(PreviewPixmapOffset()); 4384 4371 pbox->addChild(PlaybackPreview()); 4385 4372 pbox->addChild(HWAccelPlaybackPreview()); -
programs/mythfrontend/playbackboxhelper.h
old new 94 94 95 95 // Preview Pixmap Variables /////////////////////////////////////////////// 96 96 mutable QMutex m_previewGeneratorLock; 97 uint m_previewGeneratorMode;98 97 FileTimeStampMap m_previewFileTS; 99 98 bool m_previewSuspend; 100 99 PreviewMap m_previewGenerator; -
programs/mythfrontend/playbackboxhelper.cpp
old new 200 200 // Preview Image Variables 201 201 m_previewGeneratorRunning(0), m_previewGeneratorMaxThreads(2) 202 202 { 203 m_previewGeneratorMode =204 gContext->GetNumSetting("GeneratePreviewRemotely", 0) ?205 PreviewGenerator::kRemote : PreviewGenerator::kLocalAndRemote;206 207 203 int idealThreads = QThread::idealThreadCount(); 208 204 if (idealThreads >= 1) 209 205 m_previewGeneratorMaxThreads = idealThreads * 2; … … 422 418 uint attempts = IncPreviewGeneratorAttempts(filename); 423 419 if (attempts < PreviewGenState::maxAttempts) 424 420 { 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)); 428 423 } 429 424 else if (attempts == PreviewGenState::maxAttempts) 430 425 {
