| 590 | } |
| 591 | |
| 592 | bool |
| 593 | ReadNodePrivate::checkDecoderCreated(double time, |
| 594 | ViewIdx view) |
| 595 | { |
| 596 | boost::shared_ptr<KnobFile> fileKnob = inputFileKnob.lock(); |
| 597 | |
| 598 | assert(fileKnob); |
| 599 | std::string pattern = fileKnob->getFileName(std::floor(time + 0.5), view); |
| 600 | if ( pattern.empty() ) { |
| 601 | _publicInterface->setPersistentMessage( eMessageTypeError, tr("Filename empty").toStdString() ); |
| 602 | |
| 603 | return false; |
| 604 | } |
| 605 | |
| 606 | if (!_publicInterface->getEmbeddedReader()) { |
| 607 | QString s = tr("Decoder was not created for %1, check that the file exists and its format is supported.").arg( QString::fromUtf8( pattern.c_str() ) ); |
| 608 | _publicInterface->setPersistentMessage( eMessageTypeError, s.toStdString() ); |
| 609 | |
| 610 | return false; |
| 611 | } |
| 612 | |
| 613 | return true; |
| 614 | } |
| 615 | |
| 616 | static std::string |
| 617 | getFileNameFromSerialization(const std::list<boost::shared_ptr<KnobSerialization> >& serializations) |
no test coverage detected