Commit 077f6ef6 authored by Vincent Pinon's avatar Vincent Pinon
Browse files

fix gcc warnings (unused variables)

parent b8d2eb9f
......@@ -41,10 +41,10 @@ AbstractProjectItem::AbstractProjectItem(PROJECTITEMTYPE type, const QString &id
AbstractProjectItem::AbstractProjectItem(PROJECTITEMTYPE type, const QDomElement& description, AbstractProjectItem* parent) :
QObject()
, m_parent(NULL)
, m_parent(parent)
, m_id(description.attribute("id"))
, m_jobProgress(0)
, m_jobType(AbstractClipJob::NOJOBTYPE)
, m_jobProgress(0)
, m_itemType(type)
{
}
......
......@@ -1641,7 +1641,7 @@ void Bin::slotCreateProjectClip()
ClipCreationDialog::createTitleClip(m_doc, folderInfo, QString(), this);
break;
case TextTemplate:
ClipCreationDialog::createTitleTemplateClip(m_doc, folderInfo, QString(), this);
ClipCreationDialog::createTitleTemplateClip(m_doc, folderInfo, this);
break;
default:
break;
......@@ -1726,7 +1726,7 @@ void Bin::removeEffect(const QString &id, const QDomElement &effect)
}
else currentItem = m_rootFolder->clip(id);
if (!currentItem) return;
currentItem->removeEffect(m_monitor->profileInfo(), effect.attribute("kdenlive_ix").toInt());
currentItem->removeEffect(effect.attribute("kdenlive_ix").toInt());
m_monitor->refreshMonitor();
}
......
......@@ -149,6 +149,7 @@ ProjectClip* ProjectClip::clip(const QString &id)
ProjectFolder* ProjectClip::folder(const QString &id)
{
Q_UNUSED(id)
return NULL;
}
......@@ -211,6 +212,7 @@ void ProjectClip::reloadProducer(bool thumbnailOnly)
void ProjectClip::setCurrent(bool current, bool notify)
{
Q_UNUSED(notify)
//AbstractProjectItem::setCurrent(current, notify);
if (current && m_controller) {
bin()->openProducer(m_controller);
......@@ -561,12 +563,14 @@ ClipPropertiesController *ProjectClip::buildProperties(QWidget *parent)
void ProjectClip::updateParentInfo(const QString &folderid, const QString &foldername)
{
Q_UNUSED(foldername)
m_controller->setProperty("kdenlive:folderid", folderid);
}
bool ProjectClip::matches(QString condition)
{
//TODO
Q_UNUSED(condition)
return true;
}
......@@ -656,9 +660,9 @@ void ProjectClip::addEffect(const ProfileInfo &pInfo, QDomElement &effect)
bin()->emitItemUpdated(this);
}
void ProjectClip::removeEffect(const ProfileInfo &pInfo, int ix)
void ProjectClip::removeEffect(int ix)
{
m_controller->removeEffect(pInfo, ix);
m_controller->removeEffect(ix);
bin()->editMasterEffect(m_controller);
bin()->emitItemUpdated(this);
}
......
......@@ -188,7 +188,7 @@ public:
void addMarkers(QList <CommentedTime> &markers);
/** @brief Add an effect to bin clip. */
void addEffect(const ProfileInfo &pInfo, QDomElement &effect);
void removeEffect(const ProfileInfo &pInfo, int ix);
void removeEffect(int ix);
/** @brief Create audio thumbnail for this clip. */
void createAudioThumbs();
/** @brief Abort audio thumbnail for this clip. */
......
......@@ -51,6 +51,7 @@ ProjectFolder::~ProjectFolder()
void ProjectFolder::setCurrent(bool current, bool notify)
{
Q_UNUSED(notify)
if (current) {
bin()->openProducer(NULL);
}
......@@ -121,6 +122,7 @@ QDomElement ProjectFolder::toXml(QDomDocument& document)
bool ProjectFolder::rename(const QString &name, int column)
{
Q_UNUSED(column)
if (m_name == name) return false;
// Rename folder
bin()->renameFolderCommand(m_id, name, m_name);
......
......@@ -42,10 +42,13 @@ ProjectFolderUp::~ProjectFolderUp()
void ProjectFolderUp::setCurrent(bool current, bool notify)
{
Q_UNUSED(current)
Q_UNUSED(notify)
}
ProjectClip* ProjectFolderUp::clip(const QString &id)
{
Q_UNUSED(id)
return NULL;
}
......@@ -57,11 +60,13 @@ QString ProjectFolderUp::getToolTip() const
ProjectFolder* ProjectFolderUp::folder(const QString &id)
{
Q_UNUSED(id)
return NULL;
}
ProjectClip* ProjectFolderUp::clipAt(int index)
{
Q_UNUSED(index)
return NULL;
}
......
......@@ -129,6 +129,8 @@ Qt::ItemFlags ProjectItemModel::flags(const QModelIndex& index) const
bool ProjectItemModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
{
Q_UNUSED(row)
Q_UNUSED(column)
if (action == Qt::IgnoreAction)
return true;
......
......@@ -67,11 +67,13 @@ QString ProjectSubClip::getToolTip() const
ProjectClip* ProjectSubClip::clip(const QString &id)
{
Q_UNUSED(id)
return NULL;
}
ProjectFolder* ProjectSubClip::folder(const QString &id)
{
Q_UNUSED(id)
return NULL;
}
......@@ -88,6 +90,7 @@ QPoint ProjectSubClip::zone() const
ProjectClip* ProjectSubClip::clipAt(int ix)
{
Q_UNUSED(ix)
return NULL;
}
......@@ -108,6 +111,7 @@ ProjectSubClip *ProjectSubClip::subClip(int in, int out)
void ProjectSubClip::setCurrent(bool current, bool notify)
{
Q_UNUSED(notify)
if (current) {
m_masterClip->bin()->openProducer(m_masterClip->controller(), m_in, m_out);
}
......@@ -122,6 +126,7 @@ void ProjectSubClip::setThumbnail(QImage img)
bool ProjectSubClip::rename(const QString &name, int column)
{
Q_UNUSED(column)
if (m_name == name) return false;
// Rename folder
bin()->renameSubClipCommand(m_id, name, m_name, m_in, m_out);
......
......@@ -79,6 +79,9 @@ QStringList ClipCreationDialog::getExtensions()
//static
void ClipCreationDialog::createClipFromXml(KdenliveDoc *doc, QDomElement xml, QStringList groupInfo, Bin *bin)
{
//FIXME?
Q_UNUSED(groupInfo)
uint id = bin->getFreeClipId();
xml.setAttribute("id", QString::number(id));
AddClipCommand *command = new AddClipCommand(doc, xml, QString::number(id), true);
......@@ -197,7 +200,7 @@ void ClipCreationDialog::createTitleClip(KdenliveDoc *doc, QStringList groupInfo
}
void ClipCreationDialog::createTitleTemplateClip(KdenliveDoc *doc, QStringList groupInfo, QString templatePath, Bin *bin)
void ClipCreationDialog::createTitleTemplateClip(KdenliveDoc *doc, QStringList groupInfo, Bin *bin)
{
// Get the list of existing templates
QStringList filter;
......
......@@ -43,7 +43,7 @@ namespace ClipCreationDialog
void createClipFromXml(KdenliveDoc *doc, QDomElement xml, QStringList groupInfo, Bin *bin);
void createSlideshowClip(KdenliveDoc *doc, QStringList groupInfo, Bin *bin);
void createTitleClip(KdenliveDoc *doc, QStringList groupInfo, QString templatePath, Bin *bin);
void createTitleTemplateClip(KdenliveDoc *doc, QStringList groupInfo, QString templatePath, Bin *bin);
void createTitleTemplateClip(KdenliveDoc *doc, QStringList groupInfo, Bin *bin);
void createClipsCommand(KdenliveDoc *doc, const QList<QUrl> &urls, QStringList groupInfo, Bin *bin, const QMap <QString, QString> &data = QMap <QString, QString>());
void createClipsCommand(KdenliveDoc *doc, QStringList groupInfo, Bin *bin);
void addXmlProperties(QDomElement &producer, QMap <QString, QString> &properties);
......
......@@ -662,7 +662,7 @@ void EffectStackView2::slotUpdateEffectParams(const QDomElement &old, const QDom
slotSetCurrentEffect(ix);
}
else if (m_status == MASTER_CLIP) {
m_masterclipref->updateEffect(m_effectMetaInfo.monitor->profileInfo(), old, e, ix);
m_masterclipref->updateEffect(m_effectMetaInfo.monitor->profileInfo(), e, ix);
m_effectMetaInfo.monitor->refreshMonitor();
}
QTimer::singleShot(200, this, SLOT(slotCheckWheelEventFilter()));
......
......@@ -247,6 +247,8 @@ QColor ColorPickerWidget::grabColor(const QPoint &p, bool destroyImage)
&xcol);
return QColor::fromRgbF(xcol.red / 65535.0, xcol.green / 65535.0, xcol.blue / 65535.0);
#else
Q_UNUSED(destroyImage)
if (m_image.isNull()) {
QWidget *desktop = QApplication::desktop();
QPixmap pm = QPixmap::grabWindow(desktop->winId(), p.x(), p.y(), 1, 1);
......@@ -258,4 +260,3 @@ QColor ColorPickerWidget::grabColor(const QPoint &p, bool destroyImage)
#endif
}
......@@ -2110,7 +2110,7 @@ void MainWindow::slotEditItemDuration()
pCore->projectManager()->currentTimeline()->projectView()->editItemDuration();
}
void MainWindow::slotAddProjectClip(const QUrl &url, const QMap<QString,QString> &data)
void MainWindow::slotAddProjectClip(const QUrl &url)
{
pCore->bin()->droppedUrls(QList<QUrl>() << url);
}
......@@ -3100,7 +3100,7 @@ void MainWindow::slotDownloadResources()
else
currentFolder = KdenliveSettings::defaultprojectfolder();
ResourceWidget *d = new ResourceWidget(currentFolder);
connect(d, SIGNAL(addClip(QUrl,stringMap)), this, SLOT(slotAddProjectClip(QUrl,stringMap)));
connect(d, SIGNAL(addClip(QUrl)), this, SLOT(slotAddProjectClip(QUrl)));
d->show();
}
......
......@@ -326,7 +326,7 @@ private slots:
void slotSelectAddTimelineTransition();
void slotAddVideoEffect(QAction *result);
void slotAddTransition(QAction *result);
void slotAddProjectClip(const QUrl &url, const stringMap &data = stringMap());
void slotAddProjectClip(const QUrl &url);
void slotAddProjectClipList(const QList<QUrl> &urls);
void slotTrackSelected(int index, const TrackInfo &info, bool raise = true);
void slotActivateTransitionView(Transition *transition);
......
......@@ -307,13 +307,12 @@ Mlt::Producer *BinController::cloneProducer(Mlt::Producer &original)
return clone;
}
Mlt::Producer *BinController::getBinProducer(const QString &id, const QString trackName, PlaylistState::ClipState clipState, double speed)
Mlt::Producer *BinController::getBinProducer(const QString &id)
{
if (!m_clipList.contains(id)) return NULL;
// TODO: framebuffer speed clips
if (!m_clipList.contains(id)) return NULL;
ClipController *controller = m_clipList.value(id);
return &controller->originalProducer();
//return controller->getTrackProducer(trackName, clipState, speed);
}
Mlt::Producer *BinController::getBinVideoProducer(const QString &id)
......
......@@ -103,14 +103,14 @@ public:
*/
bool removeBinClip(const QString &id);
/** @brief Get the MLT Producer for a given id. Since MLT requires 1 different producer for each track to correctly handle audio mix,
* we can should specify on which track the clip should be.
@param id The clip id as stored in the DocClipBase class
@param track The track on which the producer will be put. Setting a value of -1 will return the master clip contained in the bin playlist
@param clipState The state of the clip (if we need an audio only or video only producer).
@param speed If the clip has a speed effect (framebuffer producer), we indicate the speed here
*/
Mlt::Producer *getBinProducer(const QString &id, const QString trackName = QString(), PlaylistState::ClipState clipState = PlaylistState::Original, double speed = 1.0);
/** @brief Get the MLT Producer for a given id.
@param id The clip id as stored in the DocClipBase class */
// TODO? Since MLT requires 1 different producer for each track to correctly handle audio mix,
// we should specify on which track the clip should be.
// @param track The track on which the producer will be put. Setting a value of -1 will return the master clip contained in the bin playlist
// @param clipState The state of the clip (if we need an audio only or video only producer).
// @param speed If the clip has a speed effect (framebuffer producer), we indicate the speed here
Mlt::Producer *getBinProducer(const QString &id);
/** @brief returns a video only (no audio) version of this producer */
Mlt::Producer *getBinVideoProducer(const QString &id);
......
......@@ -212,6 +212,8 @@ QMap <QString, QString> ClipController::getPropertiesFromPrefix(const QString &p
void ClipController::updateProducer(const QString &id, Mlt::Producer* producer, ProfileInfo info)
{
//TODO replace all track producers
Q_UNUSED(id)
Mlt::Properties passProperties;
// Keep track of necessary properties
passProperties.pass_list(*m_properties, getPassPropertiesList());
......@@ -236,6 +238,9 @@ void ClipController::updateProducer(const QString &id, Mlt::Producer* producer,
Mlt::Producer *ClipController::getTrackProducer(const QString trackName, PlaylistState::ClipState clipState, double speed)
{
//TODO
Q_UNUSED(speed)
if (trackName.isEmpty()) {
return m_masterProducer;
}
......@@ -602,7 +607,7 @@ void ClipController::addEffect(const ProfileInfo &pInfo, QDomElement &effect)
m_binController->updateTrackProducer(clipId());
}
void ClipController::removeEffect(const ProfileInfo &pInfo, int effectIndex)
void ClipController::removeEffect(int effectIndex)
{
Mlt::Service service(m_masterProducer->parent());
Render::removeFilterFromService(service, effectIndex, true);
......@@ -648,7 +653,7 @@ void ClipController::changeEffectState(const QList <int> indexes, bool disable)
m_binController->updateTrackProducer(clipId());
}
void ClipController::updateEffect(const ProfileInfo &pInfo, const QDomElement &old, const QDomElement &e, int ix)
void ClipController::updateEffect(const ProfileInfo &pInfo, const QDomElement &e, int ix)
{
EffectsParameterList params = EffectsController::getEffectArgs(pInfo, e);
Mlt::Service service = m_masterProducer->parent();
......
......@@ -165,11 +165,11 @@ public:
bool hasLimitedDuration() const;
Mlt::Properties &properties();
void addEffect(const ProfileInfo &pInfo, QDomElement &effect);
void removeEffect(const ProfileInfo &pInfo, int effectIndex);
void removeEffect(int effectIndex);
EffectsList effectList();
/** @brief Enable/disable an effect. */
void changeEffectState(const QList <int> indexes, bool disable);
void updateEffect(const ProfileInfo &pInfo, const QDomElement &old, const QDomElement &e, int ix);
void updateEffect(const ProfileInfo &pInfo, const QDomElement &e, int ix);
/** @brief Returns true if the bin clip has effects */
bool hasEffects() const;
/** @brief Returns info about clip audio */
......
......@@ -98,7 +98,6 @@ GLWidget::GLWidget()
}
connect(this, SIGNAL(sceneGraphInitialized()), SLOT(initializeGL()), Qt::DirectConnection);
//connect(this, SIGNAL(sceneGraphInitialized()), SLOT(setBlankScene()), Qt::QueuedConnection);
connect(this, SIGNAL(sceneGraphError(QQuickWindow::SceneGraphError, const QString &)), SLOT(slotError(QQuickWindow::SceneGraphError, const QString &)));
connect(this, SIGNAL(beforeRendering()), SLOT(paintGL()), Qt::DirectConnection);
}
......@@ -119,11 +118,6 @@ GLWidget::~GLWidget()
delete m_shader;
}
void GLWidget::slotError(QQuickWindow::SceneGraphError error, const QString &message)
{
qDebug()<<"+ + + ++ + + + +\nSCEN ERROR: "<<message;
}
void GLWidget::initializeGL()
{
if (m_isInitialized) return;
......
......@@ -163,7 +163,6 @@ private slots:
void updateTexture(GLuint yName, GLuint uName, GLuint vName);
void paintGL();
void effectRectChanged();
void slotError(QQuickWindow::SceneGraphError error, const QString &message);
protected:
void resizeEvent(QResizeEvent* event);
......
......@@ -1023,7 +1023,6 @@ void Monitor::slotLoopClip()
void Monitor::updateClipProducer(Mlt::Producer *prod)
{
if (render == NULL) return;
m_controller == NULL;
render->setProducer(prod, -1, false);
if (prod) prod->set_speed(1.0);
}
......@@ -1217,7 +1216,7 @@ void Monitor::slotEnableEffectScene(bool enable)
slotShowEffectScene(enable);
}
void Monitor::slotShowEffectScene(bool show, bool manuallyTriggered)
void Monitor::slotShowEffectScene(bool show)
{
if (show && (!m_rootItem || m_rootItem->objectName() != "rooteffectscene")) {
m_glMonitor->setSource(QUrl::fromLocalFile(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("kdenlivemonitoreffectscene.qml"))));
......@@ -1462,7 +1461,7 @@ void Monitor::slotSwitchRec(bool enable)
}
}
bool Monitor::startCapture(const QString &params, const QString &path, Mlt::Producer *p, bool livePreview)
bool Monitor::startCapture(const QString &params, const QString &path, Mlt::Producer *p)
{
m_controller = NULL;
render->updateProducer(p);
......
......@@ -100,7 +100,7 @@ public:
void switchDropFrames(bool drop);
void updateMonitorGamma();
void mute(bool, bool updateIconOnly = false);
bool startCapture(const QString &params, const QString &path, Mlt::Producer *p, bool livePreview);
bool startCapture(const QString &params, const QString &path, Mlt::Producer *p);
bool stopCapture();
void reparent();
/** @brief Returns the action displaying record toolbar */
......@@ -234,7 +234,7 @@ public slots:
void setTimePos(const QString &pos);
QStringList getZoneInfo() const;
/** @brief Display the on monitor effect scene (to adjust geometry over monitor). */
void slotShowEffectScene(bool show = true, bool manuallyTriggered = false);
void slotShowEffectScene(bool show = true);
bool effectSceneDisplayed();
/** @brief Sets m_selectedClip to @param item. Used for looping it. */
......
......@@ -185,7 +185,7 @@ void RecManager::slotRecord(bool record)
v4lparameters = QString(v4lparameters.section("acodec", 0, 0) + "an=1 " + endParam).simplified();
}
}
m_monitor->startCapture(v4lparameters, path, createV4lProducer(), true);
m_monitor->startCapture(v4lparameters, path, createV4lProducer());
m_captureFile = QUrl::fromLocalFile(path);
}
else {
......
......@@ -165,17 +165,13 @@ RecMonitor::~RecMonitor()
delete m_infoMessage;
}
void RecMonitor::mouseDoubleClickEvent(QMouseEvent * event)
void RecMonitor::mouseDoubleClickEvent(QMouseEvent*)
{
/*if (videoBox && videoBox->isVisible()) {
videoBox->switchFullScreen();
event->accept();
}*/
}
void RecMonitor::slotSwitchFullScreen(bool minimizeOnly)
{
//videoBox->switchFullScreen();
Q_UNUSED(minimizeOnly)
}
void RecMonitor::stop()
......@@ -1020,6 +1016,8 @@ void RecMonitor::slotDroppedFrames(int dropped)
void RecMonitor::buildMltDevice(const QString &path)
{
//TODO
Q_UNUSED(path)
if (m_captureDevice == NULL) {
m_monitorManager->updateScopeSource();
//TODO
......
......@@ -68,7 +68,7 @@ public:
protected:
void mousePressEvent(QMouseEvent * event);
void mouseDoubleClickEvent(QMouseEvent * event);
void mouseDoubleClickEvent(QMouseEvent*);
private:
QDateTime m_captureTime;
......
......@@ -161,15 +161,15 @@ void ClipManager::slotGetThumbs()
m_processingThumbId = i.key();
QList<int> values = m_requestedThumbs.values(m_processingThumbId);
m_requestedThumbs.remove(m_processingThumbId);
int thumbType = 0; // 0 = timeline thumb, 1 = project clip zone thumb, 2 = clip properties thumb
//TODO int thumbType = 0; // 0 = timeline thumb, 1 = project clip zone thumb, 2 = clip properties thumb
if (m_processingThumbId.startsWith(QLatin1String("?"))) {
// if id starts with ?, it means the request comes from a clip property widget
thumbType = 2;
//TODO thumbType = 2;
m_processingThumbId.remove(0, 1);
}
if (m_processingThumbId.startsWith(QLatin1String("#"))) {
// if id starts with #, it means the request comes from project tree
thumbType = 1;
//TODO thumbType = 1;
m_processingThumbId.remove(0, 1);
}
m_thumbsMutex.unlock();
......@@ -297,7 +297,7 @@ void ClipManager::deleteClip(const QString &clipId)
return list;
}*/
void ClipManager::slotAddCopiedClip(KIO::Job *job, const QUrl &, const QUrl &dst)
void ClipManager::slotAddCopiedClip(KIO::Job*, const QUrl&, const QUrl &dst)
{
pCore->bin()->droppedUrls(QList<QUrl>() << dst);
}
......
......@@ -104,7 +104,7 @@ private slots:
void slotProcessModifiedClips();
void slotGetThumbs();
/** @brief Clip has been copied, add it now. */
void slotAddCopiedClip(KIO::Job *job, const QUrl &, const QUrl &dst);
void slotAddCopiedClip(KIO::Job*, const QUrl&, const QUrl &dst);
private: // Private attributes
/** the list of clips in the document */
......
......@@ -186,8 +186,7 @@ void JobManager::slotProcessJobs()
connect(job, SIGNAL(cancelRunningJob(QString,QMap<QString, QString>)), m_bin, SLOT(slotCancelRunningJob(QString,QMap<QString, QString>)));
if (job->jobType == AbstractClipJob::MLTJOB) {
MeltJob *jb = static_cast<MeltJob *> (job);
/*if (jb->isProjectFilter())
/*if (static_cast<MeltJob*>(job)->isProjectFilter())
connect(job, SIGNAL(gotFilterJobResults(QString,int,int,stringMap,stringMap)), this, SLOT(slotGotFilterJobResults(QString,int,int,stringMap,stringMap)));
else*/
connect(job, SIGNAL(gotFilterJobResults(QString,int,int,stringMap,stringMap)), this, SIGNAL(gotFilterJobResults(QString,int,int,stringMap,stringMap)));
......
......@@ -1787,7 +1787,7 @@ void Render::mltCheckLength(Mlt::Tractor *tractor)
}
}
Mlt::Producer *Render::getTrackProducer(const QString &id, int track, bool audioOnly, bool videoOnly)
Mlt::Producer *Render::getTrackProducer(const QString &id, int track, bool, bool)
{
Mlt::Service service(m_mltProducer->parent().get_service());
if (service.type() != tractor_type) {
......@@ -1819,9 +1819,8 @@ Mlt::Producer *Render::getProducerForTrack(Mlt::Playlist &trackPlaylist, const Q
}
else delete p;
}
if (prod == NULL) prod = m_binController->getBinProducer(clipId, trackName);
if (prod == NULL) prod = m_binController->getBinProducer(clipId);
return prod;
//return m_binController->getBinProducer(clipId, trackName);
}
Mlt::Tractor *Render::lockService()
......@@ -3390,6 +3389,8 @@ QList <TransitionInfo> Render::mltInsertTrack(int ix, const QString &name, bool
QList <TransitionInfo> transitionInfos;
// Track add / delete was only added recently in MLT (pre 0.9.8 release).
#if (LIBMLT_VERSION_INT < 0x0908)
Q_UNUSED(name)
Q_UNUSED(videoTrack)
qDebug()<<"Track insertion requires a more recent MLT version";
return transitionInfos;
#else
......
......@@ -102,6 +102,7 @@ StopmotionMonitor::~StopmotionMonitor()
void StopmotionMonitor::slotSwitchFullScreen(bool minimizeOnly)
{
Q_UNUSED(minimizeOnly)
}
void StopmotionMonitor::setRender(MltDeviceCapture *render)
......
......@@ -23,9 +23,9 @@
CustomTrackScene::CustomTrackScene(Timeline *timeline, QObject *parent) :
QGraphicsScene(parent),
isZooming(false),
m_timeline(timeline),
m_scale(1.0, 1.0),
isZooming(false),
m_editMode(NormalEdit)
{
}
......
......@@ -1645,7 +1645,7 @@ void CustomTrackView::insertClipCut(const QString &id, int in, int out)
QUndoCommand *addCommand = new QUndoCommand();
addCommand->setText(i18n("Add timeline clip"));
new RefreshMonitorCommand(this, false, true, addCommand);
new AddTimelineClipCommand(this, id, pasteInfo, EffectsList(), PlaylistState::Original, m_scene->editMode() == OverwriteEdit, m_scene->editMode() == InsertEdit, true, false, addCommand);
new AddTimelineClipCommand(this, id, pasteInfo, EffectsList(), PlaylistState::Original, true, false, addCommand);
new RefreshMonitorCommand(this, true, false, addCommand);
updateTrackDuration(pasteInfo.track, addCommand);
......@@ -1900,7 +1900,7 @@ void CustomTrackView::addEffect(int track, GenTime pos, QDomElement effect)
double speed = locale.toDouble(EffectsList::parameter(effect, "speed")) / 100.0;
int strobe = EffectsList::parameter(effect, "strobe").toInt();
if (strobe == 0) strobe = 1;
doChangeClipSpeed(clip->info(), clip->speedIndependantInfo(), speed, 1.0, strobe, clip->getBinId());
doChangeClipSpeed(clip->info(), clip->speedIndependantInfo(), speed, strobe, clip->getBinId());
EffectsParameterList params = clip->addEffect(m_document->getProfileInfo(), effect);
if (clip->