You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixing regression on Clip constructor, and simplifying pointer initialization
This commit is contained in:
@@ -55,13 +55,13 @@ void QtImageReader::Open()
|
||||
image = std::shared_ptr<QImage>(new QImage());
|
||||
bool success = image->load(QString::fromStdString(path));
|
||||
|
||||
// Set pixel format
|
||||
image = std::shared_ptr<QImage>(new QImage(image->convertToFormat(QImage::Format_RGBA8888)));
|
||||
|
||||
if (!success)
|
||||
// raise exception
|
||||
throw InvalidFile("File could not be opened.", path);
|
||||
|
||||
// Set pixel format
|
||||
image = std::shared_ptr<QImage>(new QImage(image->convertToFormat(QImage::Format_RGBA8888)));
|
||||
|
||||
// Update image properties
|
||||
info.has_audio = false;
|
||||
info.has_video = true;
|
||||
|
||||
Reference in New Issue
Block a user