Don't cache empty audio data (fixes missing audio thumbs on video clips)

parent 9ba6eaa9
Pipeline #28985 passed with stage
in 41 minutes and 34 seconds
......@@ -1654,12 +1654,11 @@ const QVector <uint8_t> ProjectClip::audioFrameCache(int stream)
audioLevels << (uint8_t)qBlue(p);
audioLevels << (uint8_t)qAlpha(p);
}
}
// populate vector
QDataStream st(&audioData, QIODevice::WriteOnly);
st << audioLevels;
pCore->audioThumbCache.insert(key, audioData);
qDebug()<<"=== AUDIO THUMBS TOTAL : "<<pCore->audioThumbCache.totalSize()<<" // "<<pCore->audioThumbCache.freeSize();
}
return audioLevels;
}
......
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