You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Merge pull request #595 from OpenShot/fix-get-clip-method
Fixing an issue caused by timeline::GetClip returning a ClipBase* instead of Clip*
This commit is contained in:
@@ -219,6 +219,7 @@
|
||||
%include "effects/Bars.h"
|
||||
%include "effects/Blur.h"
|
||||
%include "effects/Brightness.h"
|
||||
%include "effects/Caption.h"
|
||||
%include "effects/ChromaKey.h"
|
||||
%include "effects/ColorShift.h"
|
||||
%include "effects/Crop.h"
|
||||
|
||||
@@ -206,6 +206,7 @@
|
||||
%include "effects/Bars.h"
|
||||
%include "effects/Blur.h"
|
||||
%include "effects/Brightness.h"
|
||||
%include "effects/Caption.h"
|
||||
%include "effects/ChromaKey.h"
|
||||
%include "effects/ColorShift.h"
|
||||
%include "effects/Crop.h"
|
||||
|
||||
@@ -289,7 +289,7 @@ void Timeline::RemoveClip(Clip* clip)
|
||||
}
|
||||
|
||||
// Look up a clip
|
||||
openshot::ClipBase* Timeline::GetClip(const std::string& id)
|
||||
openshot::Clip* Timeline::GetClip(const std::string& id)
|
||||
{
|
||||
// Find the matching clip (if any)
|
||||
for (const auto& clip : clips) {
|
||||
|
||||
@@ -265,7 +265,7 @@ namespace openshot {
|
||||
std::list<openshot::Clip*> Clips() { return clips; };
|
||||
|
||||
/// Look up a single clip by ID
|
||||
openshot::ClipBase* GetClip(const std::string& id);
|
||||
openshot::Clip* GetClip(const std::string& id);
|
||||
|
||||
/// Look up a clip effect by ID
|
||||
openshot::EffectBase* GetClipEffect(const std::string& id);
|
||||
|
||||
Reference in New Issue
Block a user