Fix duplicated audio from previous commit.

Related to #816
parent 8e3163b2
Pipeline #38178 failed with stage
in 60 minutes and 20 seconds
......@@ -25,7 +25,7 @@ AudioStreamInfo::AudioStreamInfo(const std::shared_ptr<Mlt::Producer> &producer,
{
// Fetch audio streams
int streams = producer->get_int("meta.media.nb_streams");
if (playlist) {
if (playlist && streams == 0) {
// Playlist clips do not provide stream info
m_audioStreams.insert(0, i18n("Audio"));
}
......
......@@ -262,7 +262,7 @@ void ClipController::getInfoForProducer()
m_clipType = ClipType::Unknown;
}
if (audioIndex > -1 || m_clipType == ClipType::Playlist) {
m_audioInfo = std::make_unique<AudioStreamInfo>(m_masterProducer, audioIndex, true);
m_audioInfo = std::make_unique<AudioStreamInfo>(m_masterProducer, audioIndex, m_clipType == ClipType::Playlist);
// Load stream effects
for (int stream : m_audioInfo->streams().keys()) {
QString streamEffect = m_properties->get(QString("kdenlive:stream:%1").arg(stream).toUtf8().constData());
......
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