#define DBG_AREA
//#include "config.h"
-extern "C"
-{
+extern "C" {
KDE_EXPORT ThumbCreator *new_creator() {
return new MltPreview;
}
bool MltPreview::create(const QString &path, int width, int height, QImage &img)
{
Mlt::Profile *profile = new Mlt::Profile("dv_pal");
- char *tmp = (char *) qstrdup(path.toUtf8().data());
- Mlt::Producer *producer = new Mlt::Producer(*profile, tmp);
- delete[] tmp;
+ Mlt::Producer *producer = new Mlt::Producer(*profile, path.toUtf8().data());
if (producer->is_blank()) {