mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-18 13:39:28 +02:00
Defined constant to control thumbnail generation timeout.
This commit is contained in:
@@ -182,12 +182,12 @@ bool Media::setUri(const QString &uri)
|
||||
// Try to get a sample from the current position.
|
||||
// NOTE: There is no guarantee the sample has yet been acquired.
|
||||
const uint* bits;
|
||||
if (!impl_->waitForNextBits(ICON_TIMEOUT, (const uchar**)&bits))
|
||||
{
|
||||
qDebug() << "Second waiting wrong..." << endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Copy bits into thumbnail QImage.
|
||||
QImage thumbnail(getWidth(), getHeight(), QImage::Format_ARGB32);
|
||||
int i=0;
|
||||
|
||||
Reference in New Issue
Block a user