MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / GetClip

Method GetClip

src/Timeline.cpp:418–427  ·  view source on GitHub ↗

Look up a clip

Source from the content-addressed store, hash-verified

416
417// Look up a clip
418openshot::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
430openshot::EffectBase* Timeline::GetEffect(const std::string& id)

Callers 2

AttachToObjectMethod · 0.80
Timeline.cppFile · 0.80

Calls 1

IdMethod · 0.45

Tested by

no test coverage detected