mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Cosmetic change.
This commit is contained in:
@@ -181,14 +181,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 uchar* data;
|
||||
if (!impl_->waitForNextBits(1000, &data))
|
||||
const uint* bits;
|
||||
{
|
||||
qDebug() << "Second waiting wrong..." << endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
const uint* bits = (uint*)data;
|
||||
|
||||
// Copy bits into thumbnail QImage.
|
||||
QImage thumbnail(getWidth(), getHeight(), QImage::Format_ARGB32);
|
||||
|
||||
Reference in New Issue
Block a user