mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-02-19 23:13:12 -05:00
Fixes for sequential devices
This commit is contained in:
committed by
Albert Astals Cid
parent
49bd131eef
commit
c96ad6ba8a
@ -855,6 +855,14 @@ int RAWHandler::currentImageNumber() const
|
||||
|
||||
bool RAWHandler::canRead(QIODevice *device)
|
||||
{
|
||||
if (!device) {
|
||||
qWarning("RAWHandler::canRead() called with no device");
|
||||
return false;
|
||||
}
|
||||
if (device->isSequential()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
device->startTransaction();
|
||||
|
||||
std::unique_ptr<LibRaw> rawProcessor(new LibRaw);
|
||||
|
||||
Reference in New Issue
Block a user