Refactored Clips into a base class called ClipBase. Effects and Clips use this base class, which allows them to be positioned and layered on the timeline. Also fixed a regression in Coordinate, which was not properly setting instance variables.

This commit is contained in:
Jonathan Thomas
2013-10-01 15:22:25 -05:00
parent 79dc95a054
commit 1127a0f3ba
11 changed files with 135 additions and 29 deletions

View File

@@ -32,6 +32,12 @@ using namespace openshot;
// Initialize the values of the FileInfo struct
void EffectBase::InitEffectInfo()
{
// Init clip settings
Position(0.0);
Layer(0);
Start(0.0);
End(0.0);
info.has_video = false;
info.has_audio = false;
info.name = "";