various improvements to import process and project management

This commit is contained in:
itsmattkc
2019-07-01 15:40:09 -07:00
parent 8f6cb7a2cb
commit 0966b62f29
14 changed files with 104 additions and 20 deletions
+8 -1
View File
@@ -150,8 +150,12 @@ void FFmpegDecoder::Close()
bool FFmpegDecoder::Probe(Footage *f)
{
// Variable for receiving errors from FFmpeg
int error_code;
// Result to return
bool result = false;
// Convert QString to a C strng
QByteArray ba = f->filename().toUtf8();
const char* filename = ba.constData();
@@ -229,12 +233,15 @@ bool FFmpegDecoder::Probe(Footage *f)
f->add_stream(str);
}
// As long as we can open the container and retrieve information, this was a successful probe
result = true;
}
// Free all memory
Close();
return false;
return result;
}
void FFmpegDecoder::FFmpegErr(int error_code)
+4 -1
View File
@@ -57,10 +57,13 @@ bool olive::ProbeMedia(Footage *f)
// TODO Some way of "attaching" the Footage to the Decoder without having to iterate through Decoders again at
// render time?
f->set_ready(true);
f->set_status(Footage::kReady);
return true;
}
}
// We aren't able to use this Footage
f->set_status(Footage::kInvalid);
return false;
}