Look up a clip
| 416 | |
| 417 | // Look up a clip |
| 418 | openshot::Clip* Timeline::GetClip(const std::string& id) |
| 419 | { |
| 420 | // Find the matching clip (if any) |
| 421 | for (const auto& clip : clips) { |
| 422 | if (clip->Id() == id) { |
| 423 | return clip; |
| 424 | } |
| 425 | } |
| 426 | return nullptr; |
| 427 | } |
| 428 | |
| 429 | // Look up a timeline effect |
| 430 | openshot::EffectBase* Timeline::GetEffect(const std::string& id) |
no test coverage detected