| 539 | } |
| 540 | |
| 541 | bool decoderVVDec::checkLibraryFile(QString libFilePath, QString &error) |
| 542 | { |
| 543 | decoderVVDec testDecoder; |
| 544 | |
| 545 | // Try to load the library file |
| 546 | testDecoder.library.setFileName(libFilePath); |
| 547 | if (!testDecoder.library.load()) |
| 548 | { |
| 549 | error = "Error opening QLibrary."; |
| 550 | return false; |
| 551 | } |
| 552 | |
| 553 | // Now let's see if we can retrive all the function pointers that we will need. |
| 554 | // If this works, we can be fairly certain that this is a valid library. |
| 555 | testDecoder.resolveLibraryFunctionPointers(); |
| 556 | error = testDecoder.decoderErrorString(); |
| 557 | return testDecoder.state() != DecoderState::Error; |
| 558 | } |
| 559 | |
| 560 | } // namespace decoder |
nothing calls this directly
no test coverage detected