Commit 3c74efa3 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Don't attempt to proxy mp3 clips with cover art

parent 9dd1aed1
Pipeline #145082 passed with stage
in 5 minutes and 20 seconds
...@@ -1228,6 +1228,17 @@ void KdenliveDoc::slotProxyCurrentItem(bool doProxy, QList<std::shared_ptr<Proje ...@@ -1228,6 +1228,17 @@ void KdenliveDoc::slotProxyCurrentItem(bool doProxy, QList<std::shared_ptr<Proje
if ((t == ClipType::Video || t == ClipType::AV || t == ClipType::Unknown || t == ClipType::Image || t == ClipType::Playlist || if ((t == ClipType::Video || t == ClipType::AV || t == ClipType::Unknown || t == ClipType::Image || t == ClipType::Playlist ||
t == ClipType::SlideShow) && t == ClipType::SlideShow) &&
item->statusReady()) { item->statusReady()) {
// Check for MP3 with cover art
if (t == ClipType::AV && item->codec(false) == QLatin1String("mjpeg")) {
QString frame_rate = item->videoCodecProperty(QStringLiteral("frame_rate"));
if (frame_rate.isEmpty()) {
frame_rate = item->getProducerProperty(QLatin1String("meta.media.frame_rate_num"));
}
if (frame_rate == QLatin1String("90000")) {
pCore->bin()->doDisplayMessage(i18n("Clip type does not support proxies"), KMessageWidget::Information);
continue;
}
}
if ((doProxy && !force && item->hasProxy()) || if ((doProxy && !force && item->hasProxy()) ||
(!doProxy && !item->hasProxy() && pCore->projectItemModel()->hasClip(item->AbstractProjectItem::clipId()))) { (!doProxy && !item->hasProxy() && pCore->projectItemModel()->hasClip(item->AbstractProjectItem::clipId()))) {
continue; continue;
......
Supports Markdown
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