Skip to content

Commit

Permalink
Fixing an issue caused by timeline::GetClip returning a ClipBase inst…
Browse files Browse the repository at this point in the history
…ead of a Clip (broke waveform generation).

Also adding a swig definition for the Caption effect.
  • Loading branch information
jonoomph committed Dec 3, 2020
1 parent 9a91abc commit ac73bd9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions bindings/python/openshot.i
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions bindings/ruby/openshot.i
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/Timeline.cpp
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/Timeline.h
Expand Up @@ -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);
Expand Down

0 comments on commit ac73bd9

Please sign in to comment.