aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-01-31 23:10:03 +0100
committerJean-Baptiste Mardelle <[email protected]>2015-01-31 23:10:03 +0100
commit67e34ebce52402ec94513669c815f0c227577f14 (patch)
tree9a52f9ce688cbbcab78012d40786a55f4c5eb7db
parent9fe75bedfd6dd346468ff69c6c746a273b744001 (diff)
Fix crash on slideshow right click in bin
-rw-r--r--src/mltcontroller/clipcontroller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mltcontroller/clipcontroller.cpp b/src/mltcontroller/clipcontroller.cpp
index 9414660..38c2c80 100644
--- a/src/mltcontroller/clipcontroller.cpp
+++ b/src/mltcontroller/clipcontroller.cpp
@@ -276,7 +276,7 @@ double ClipController::originalFps() const
const QString ClipController::codec(bool audioCodec) const
{
- if (!m_properties) return QString();
+ if (!m_properties || (m_clipType!= AV && m_clipType != Video && m_clipType != Audio)) return QString();
QString propertyName = QString("meta.media.%1.codec.name").arg(audioCodec ? m_audioIndex : m_videoIndex);
return m_properties->get(propertyName.toUtf8().constData());
}