mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
LP-109 fix crash when using PFD Video without gstreamer support
This commit is contained in:
parent
ddbabc4bf0
commit
f78d161dc3
@ -84,7 +84,7 @@ public:
|
|||||||
imageSource = new ImageSource();
|
imageSource = new ImageSource();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return imageSource->createImage(imageUrl);
|
return imageSource ? imageSource->createImage(imageUrl) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateImageFile()
|
void updateImageFile()
|
||||||
@ -96,6 +96,10 @@ public:
|
|||||||
{
|
{
|
||||||
osg::Image *image = loadImage();
|
osg::Image *image = loadImage();
|
||||||
|
|
||||||
|
if (!image) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// qDebug() << "OSGImageNode::update" << image;
|
// qDebug() << "OSGImageNode::update" << image;
|
||||||
osg::Node *geode = createGeodeForImage(image);
|
osg::Node *geode = createGeodeForImage(image);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user