void LOTPlayerPrivate::setSize(const VSize &sz)
{
+ if (!mCompItem.get()) {
+ vWarning << "Set file first!";
+ return;
+ }
+
mCompItem->resize(sz);
}
void LOTPlayerPrivate::size(int &w, int &h) const
{
+ if (!mCompItem.get()) {
+ w = 0;
+ h = 0;
+ return;
+ }
+
VSize size = mCompItem->size();
w = size.width();
h = size.height();
}
-
const std::vector<LOTNode *>& LOTPlayerPrivate::renderList() const
{
+ if (!mCompItem.get()) {
+ //FIXME: Reference is not good...
+ }
+
return mCompItem->renderList();
}
}
}
-
LOTPlayerPrivate::LOTPlayerPrivate()
{
return false;
}
-
LOTPlayer::LOTPlayer():d(new LOTPlayerPrivate())
{