]> git.sesse.net Git - kdenlive/blobdiff - src/clipproperties.cpp
Fix dropframe timecode, patch from John T. Mertz
[kdenlive] / src / clipproperties.cpp
index a84e831f471bd688a7dae83131322e3dc5e2dd4b..4b8c9dc509da218d68670de05030740a7383b93c 100644 (file)
@@ -265,6 +265,7 @@ ClipProperties::ClipProperties(DocClipBase *clip, Timecode tc, double fps, QWidg
         m_view.clip_filesize->setHidden(true);
         m_view.label_size->setHidden(true);
     }
+    m_view.clip_duration->setInputMask(tc.inputMask());
     m_view.clip_duration->setText(tc.getTimecode(m_clip->duration()));
     if (t != IMAGE && t != COLOR && t != TEXT) m_view.clip_duration->setReadOnly(true);
     else connect(m_view.clip_duration, SIGNAL(editingFinished()), this, SLOT(slotCheckMaxLength()));
@@ -462,7 +463,7 @@ const QString &ClipProperties::clipId() const
 QMap <QString, QString> ClipProperties::properties()
 {
     QMap <QString, QString> props;
-    CLIPTYPE t;
+    CLIPTYPE t = UNKNOWN;
     if (m_clip != NULL) {
         t = m_clip->clipType();
         m_old_props = m_clip->properties();