Commit 00d8e750 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Drop unused params

parent 9c712b89
Pipeline #204664 failed with stage
in 6 minutes and 25 seconds
......@@ -5254,7 +5254,7 @@ bool Bin::containsId(const QString &clipId) const
return true;
}
void Bin::processMultiStream(const QString &clipId, QList<int> videoStreams, QList<int> audioStreams, int aindex, int vindex)
void Bin::processMultiStream(const QString &clipId, QList<int> videoStreams, QList<int> audioStreams)
{
auto binClip = m_itemModel->getClipByBinID(clipId);
// We retrieve the folder containing our clip, because we will set the other streams in the same
......
......@@ -473,7 +473,7 @@ public slots:
/** @brief Build the project bin audio/video icons according to color theme */
void slotUpdatePalette();
/** @brief Import multiple video streams in a clip */
void processMultiStream(const QString &clipId, QList<int> videoStreams, QList<int> audioStreams, int aindex, int vindex);
void processMultiStream(const QString &clipId, QList<int> videoStreams, QList<int> audioStreams);
protected:
/* This function is called whenever an item is selected to propagate signals
......
......@@ -109,9 +109,6 @@ void ClipController::addMasterProducer(const std::shared_ptr<Mlt::Producer> &pro
emitProducerChanged(m_controllerBinId, producer);
if (!m_hasMultipleVideoStreams && m_service.startsWith(QLatin1String("avformat")) && (m_clipType == ClipType::AV || m_clipType == ClipType::Video)) {
// Check if clip has multiple video streams
int vindex = m_properties->get_int("video_index");
int aindex = m_properties->get_int("audio_index");
// Find maximum stream index values
QList<int> videoStreams;
QList<int> audioStreams;
int aStreams = m_properties->get_int("meta.media.nb_streams");
......@@ -129,7 +126,7 @@ void ClipController::addMasterProducer(const std::shared_ptr<Mlt::Producer> &pro
setProducerProperty(QStringLiteral("kdenlive:multistreams"), 1);
m_hasMultipleVideoStreams = true;
QMetaObject::invokeMethod(pCore->bin(), "processMultiStream", Qt::QueuedConnection, Q_ARG(const QString &, m_controllerBinId),
Q_ARG(QList<int>, videoStreams), Q_ARG(QList<int>, audioStreams), Q_ARG(int, aindex), Q_ARG(int, vindex));
Q_ARG(QList<int>, videoStreams), Q_ARG(QList<int>, audioStreams));
}
}
}
......
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