Commit c860d36e2fa143f7b928cb47ed14ea5ff8bc7d0c
1 parent
4d6920b6
Set correct stream readMode for transforms returned by Transform::fromAlgorithm
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/core/core.cpp
| @@ -706,7 +706,7 @@ QSharedPointer<br::Transform> br::Transform::fromAlgorithm(const QString &algori | @@ -706,7 +706,7 @@ QSharedPointer<br::Transform> br::Transform::fromAlgorithm(const QString &algori | ||
| 706 | return AlgorithmManager::getAlgorithm(algorithm)->transform; | 706 | return AlgorithmManager::getAlgorithm(algorithm)->transform; |
| 707 | else { | 707 | else { |
| 708 | QSharedPointer<Transform> orig_tform = AlgorithmManager::getAlgorithm(algorithm)->transform; | 708 | QSharedPointer<Transform> orig_tform = AlgorithmManager::getAlgorithm(algorithm)->transform; |
| 709 | - QSharedPointer<Transform> newRoot = QSharedPointer<Transform>(Transform::make("Stream(Identity)", NULL)); | 709 | + QSharedPointer<Transform> newRoot = QSharedPointer<Transform>(Transform::make("Stream(Identity, readMode=DistributeFrames)", NULL)); |
| 710 | WrapperTransform * downcast = dynamic_cast<WrapperTransform *> (newRoot.data()); | 710 | WrapperTransform * downcast = dynamic_cast<WrapperTransform *> (newRoot.data()); |
| 711 | downcast->transform = orig_tform.data(); | 711 | downcast->transform = orig_tform.data(); |
| 712 | downcast->init(); | 712 | downcast->init(); |