Commit 9cf3ec91 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix image proxy clips incorrectly detected as smaller than 8 pixels

Fixes: #51
parent 89335d9f
......@@ -405,7 +405,7 @@ bool ProjectClip::setProducer(std::shared_ptr<Mlt::Producer> producer, bool repl
if (m_clipType == ClipType::Audio) {
m_thumbnail = QIcon::fromTheme(QStringLiteral("audio-x-generic"));
} else if (m_clipType == ClipType::Image) {
if (getProducerIntProperty(QStringLiteral("meta.media.width")) < 8 || getProducerIntProperty(QStringLiteral("meta.media.height")) < 8) {
if (producer->get_int("meta.media.width") < 8 || producer->get_int("meta.media.height") < 8) {
KMessageBox::information(QApplication::activeWindow(),
i18n("Image dimension smaller than 8 pixels.\nThis is not correctly supported by our video framework."));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment