| 802 | } // ReadNodePrivate::createReadNode |
| 803 | |
| 804 | void |
| 805 | ReadNodePrivate::refreshFileInfoVisibility(const std::string& pluginID) |
| 806 | { |
| 807 | KnobButtonPtr fileInfos = fileInfosKnob.lock(); |
| 808 | KnobIPtr hasMetadataKnob = _publicInterface->getKnobByName("showMetadata"); |
| 809 | bool hasFfprobe = false; |
| 810 | if (!hasMetadataKnob) { |
| 811 | QString ffprobePath = getFFProbeBinaryPath(); |
| 812 | hasFfprobe = QFile::exists(ffprobePath); |
| 813 | } else { |
| 814 | hasMetadataKnob->setSecret(true); |
| 815 | } |
| 816 | |
| 817 | |
| 818 | if ( hasMetadataKnob || ( ReadNode::isVideoReader(pluginID) && hasFfprobe ) ) { |
| 819 | fileInfos->setSecret(false); |
| 820 | } else { |
| 821 | fileInfos->setSecret(true); |
| 822 | } |
| 823 | } |
| 824 | |
| 825 | void |
| 826 | ReadNodePrivate::refreshPluginSelectorKnob() |
no test coverage detected