]> git.sesse.net Git - kdenlive/commitdiff
Make generators obey to the project's fps:
authorTill Theato <root@ttill.de>
Sun, 23 May 2010 05:57:28 +0000 (05:57 +0000)
committerTill Theato <root@ttill.de>
Sun, 23 May 2010 05:57:28 +0000 (05:57 +0000)
http://kdenlive.org/mantis/view.php?id=1332

svn path=/trunk/kdenlive/; revision=4476

src/mainwindow.cpp
src/mainwindow.h

index fde0e90bc1ffcdd5da467cc2e85b920b57a23af6..5ad59ec91a5617647fbf41e2de525025b62bf8f1 100644 (file)
@@ -530,7 +530,8 @@ void MainWindow::generateClip()
     QAction *action = qobject_cast<QAction *>(sender());
     ClipGenerator *iGenerator = qobject_cast<ClipGenerator *>(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 <QUrl> () << clipUrl);
     }
index 2fea45c014c77432b10b865b997239be8034777c..8e829b0a40e85647d00b2fba17ccae055adad129 100644 (file)
@@ -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();