Ticket #3532: previewgenerator.patch
File previewgenerator.patch, 1.0 KB (added by , 18 years ago) |
---|
-
mythtv/libs/libmythtv/previewgenerator.cpp
68 68 69 69 // Try to find a local means to access file... 70 70 QString localFN = programInfo.GetPlaybackURL(false, true); 71 if (!(localFN.left(1) == "/" && QFileInfo(localFN).exists())) 71 QString localFNdir = QFileInfo(localFN).dirPath(); 72 if (!(localFN.left(1) == "/" && 73 QFileInfo(localFN).exists() && 74 QFileInfo(localFNdir).isWritable())) 72 75 return; // didn't find file locally, must use remote backend 73 76 74 77 // Found file locally, so set the new pathname.. … … 313 316 314 317 bool PreviewGenerator::IsLocal(void) const 315 318 { 316 return QFileInfo(pathname).exists(); 319 QString pathdir = QFileInfo(programInfo.pathname).dirPath(); 320 return (QFileInfo(pathname).exists() && QFileInfo(pathdir).isWritable()); 317 321 } 318 322 319 323 /** \fn PreviewGenerator::SaveScreenshot()