]> git.sesse.net Git - kdenlive/blobdiff - src/dvdwizardvob.cpp
Hopefully fix compile problem on armel, where there is no double type
[kdenlive] / src / dvdwizardvob.cpp
index f88fab2fc604114d66843de4eeb25da7cfef9e31..a0a90cd3f8dc0d448da9dd10345901b9020bdc4c 100644 (file)
@@ -32,6 +32,7 @@
 #include <QHBoxLayout>
 #include <QDomDocument>
 #include <QTreeWidgetItem>
+#include <QHeaderView>
 
 DvdWizardVob::DvdWizardVob(const QString &profile, QWidget *parent) :
         QWizardPage(parent)
@@ -122,7 +123,9 @@ void DvdWizardVob::slotAddVobFile(KUrl url, const QString &chapters)
     delete[] tmp;
 
     if (producer->is_blank() == false) {
-        pix = KThumb::getFrame(producer, 0, 60, 45);
+        int width = 45.0 * profile.dar();
+        if (width % 2 == 1) width++;
+        pix = KThumb::getFrame(producer, 0, width, 45);
         item->setIcon(0, pix);
         int playTime = producer->get_playtime();
         item->setText(1, Timecode::getStringTimecode(playTime, profile.fps()));
@@ -182,7 +185,7 @@ void DvdWizardVob::changeFormat()
         delete[] tmp;
 
         if (producer->is_blank() == false) {
-            //pix = KThumb::getFrame(producer, 0, 180, 135);
+            //pix = KThumb::getFrame(producer, 0, 135 * profile.dar(), 135);
             //item->setIcon(0, pix);
             item->setText(1, Timecode::getStringTimecode(producer->get_playtime(), profile.fps()));
         }
@@ -354,4 +357,4 @@ void DvdWizardVob::setProfile(const QString profile)
 void DvdWizardVob::clear()
 {
     m_view.vobs_list->clear();
-}
\ No newline at end of file
+}