if ( clip_start < position )
{
- mlt_playlist_split( this, index ++, position - clip_start );
- clip_length -= position - clip_start;
+ mlt_playlist_split( this, index ++, position - clip_start - 1 );
}
- while( length > 0 )
+ while( length >= 0 )
{
if ( mlt_playlist_clip_length( this, index ) > length )
- mlt_playlist_split( this, index, length );
+ mlt_playlist_split( this, index, length - 1 );
length -= mlt_playlist_clip_length( this, index );
mlt_playlist_remove( this, index );
}
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+ #include "kdenlivetitle_wrapper.h"
+ #include <framework/mlt_producer.h>
+
#include <QtGui/QImage>
#include <QtGui/QPainter>
++<<<<<<< HEAD:src/modules/qimage/kdenlivetitle_wrapper.cpp
+#include <QtCore/QCoreApplication>
++=======
+ #include <QtCore/QDebug>
++>>>>>>> jbm/kdenlivetitle:src/modules/qimage/kdenlivetitle_wrapper.cpp
#include <QtGui/QApplication>
#include <QtCore/QFile>
#include <QtGui/QGraphicsScene>