From 1df696aeb862ce50c65b739de3c74510d0a3ff78 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Sun, 23 May 2010 05:57:28 +0000 Subject: [PATCH] Make generators obey to the project's fps: http://kdenlive.org/mantis/view.php?id=1332 svn path=/trunk/kdenlive/; revision=4476 --- src/mainwindow.cpp | 3 ++- src/mainwindow.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index fde0e90b..5ad59ec9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -530,7 +530,8 @@ void MainWindow::generateClip() QAction *action = qobject_cast(sender()); ClipGenerator *iGenerator = qobject_cast(action->parent()); - KUrl clipUrl = iGenerator->generatedClip(action->data().toString(), m_activeDocument->projectFolder(), QStringList(), QStringList(), 25, 720, 576); + KUrl clipUrl = iGenerator->generatedClip(action->data().toString(), m_activeDocument->projectFolder(), + QStringList(), QStringList(), m_activeDocument->fps(), m_activeDocument->width(), m_activeDocument->height()); if (!clipUrl.isEmpty()) { m_projectList->slotAddClip(QList () << clipUrl); } diff --git a/src/mainwindow.h b/src/mainwindow.h index 2fea45c0..8e829b0a 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -372,6 +372,7 @@ private slots: void slotGetNewMltProfileStuff(); void slotAutoTransition(); void slotRunWizard(); + /** @brief Lets the sampleplugin create a generator. */ void generateClip(); void slotZoneMoved(int start, int end); void slotUpdatePreviewSettings(); -- 2.39.2