[PATCH by Ray Lehtiniemi] Add defaults for a few potentially uninitialized uses

svn path=/trunk/kdenlive/; revision=3109
parent 0746e08a
......@@ -268,7 +268,7 @@ void RenderJob::slotIsOver(int exitcode, QProcess::ExitStatus status) {
args.append(QByteArray()); // app icon
QStringList actionList;
args.append(actionList); // actions
qlonglong wid;
qlonglong wid = 0;
args.append(wid); // win id
m.setArguments(args);
......
......@@ -1448,8 +1448,8 @@ void MainWindow::slotRenderProject() {
void MainWindow::slotDoRender(const QString &dest, const QString &render, const QStringList &overlay_args, const QStringList &avformat_args, bool zoneOnly, bool playAfter, double guideStart, double guideEnd, bool resizeProfile, const QString &scriptExport) {
kDebug() << "// SCRIPT EXPORT: " << scriptExport;
if (dest.isEmpty()) return;
int in;
int out;
int in = 0;
int out = 0;
TrackView *currentTab = (TrackView *) m_timelineArea->currentWidget();
if (currentTab && zoneOnly) {
in = currentTab->inPoint();
......
......@@ -461,7 +461,7 @@ int TrackView::slotAddProjectTrack(int ix, QDomElement xml, bool locked) {
if (MainWindow::videoEffects.hasKeyFrames(currenteffect)) {
//kDebug() << " * * * * * * * * * * ** CLIP EFF WITH KFR FND * * * * * * * * * * *";
// effect is key-framable, read all effects to retrieve keyframes
double factor;
double factor = 0;
QString starttag;
QString endtag;
QDomNodeList params = currenteffect.elementsByTagName("parameter");
......@@ -477,8 +477,8 @@ int TrackView::slotAddProjectTrack(int ix, QDomElement xml, bool locked) {
QString keyframes;
int effectin = effect.attribute("in").toInt();
int effectout = effect.attribute("out").toInt();
double startvalue;
double endvalue;
double startvalue = 0;
double endvalue = 0;
for (QDomNode n3 = effect.firstChild(); !n3.isNull(); n3 = n3.nextSibling()) {
// parse effect parameters
QDomElement effectparam = n3.toElement();
......
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