Commit 427c7132 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash on add clip introduced in last commit

parent f1a9ebdf
Pipeline #62849 passed with stage
in 8 minutes and 11 seconds
......@@ -1804,6 +1804,9 @@ int ProjectClip::getAudioMax(int stream)
// Process audio max for the stream
const QString key2 = QString("_kdenlive:audio%1").arg(stream);
if (!m_masterProducer->property_exists(key2.toUtf8().constData())) {
return 0;
const QVector <uint8_t> audioData = *static_cast<QVector<uint8_t> *>(m_masterProducer->get_data(key2.toUtf8().constData()));
if (audioData.isEmpty()) {
return 0;
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