MCPcopy Create free account
hub / github.com/IENT/YUView / updateFileWatchSetting

Method updateFileWatchSetting

YUViewLib/src/filesource/FileSourceFFmpegFile.cpp:388–397  ·  view source on GitHub ↗

Check if we are supposed to watch the file for changes. If no, remove the file watcher. If yes, install one.

Source from the content-addressed store, hash-verified

386// Check if we are supposed to watch the file for changes. If no, remove the file watcher. If yes,
387// install one.
388void FileSourceFFmpegFile::updateFileWatchSetting()
389{
390 // Install a file watcher if file watching is active in the settings.
391 // The addPath/removePath functions will do nothing if called twice for the same file.
392 QSettings settings;
393 if (settings.value("WatchFiles", true).toBool())
394 this->fileWatcher.addPath(this->fullFilePath);
395 else
396 this->fileWatcher.removePath(this->fullFilePath);
397}
398
399std::pair<int64_t, size_t> FileSourceFFmpegFile::getClosestSeekableFrameBefore(int frameIdx) const
400{

Callers 1

openFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected