Initialize the resource, so it can be used from static libraries.
Change-Id: If28509a991fb464dc587705ce62af66b528fdd97 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
This commit is contained in:
committed by
Yoann Lopes
parent
5fab28b581
commit
4be995d251
@@ -41,6 +41,10 @@
|
|||||||
#include <private/qmediapluginloader_p.h>
|
#include <private/qmediapluginloader_p.h>
|
||||||
#include <QtCore/qloggingcategory.h>
|
#include <QtCore/qloggingcategory.h>
|
||||||
|
|
||||||
|
static void initResource() {
|
||||||
|
Q_INIT_RESOURCE(qtmultimediaquicktools);
|
||||||
|
}
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
Q_LOGGING_CATEGORY(qLcVideo, "qt.multimedia.video")
|
Q_LOGGING_CATEGORY(qLcVideo, "qt.multimedia.video")
|
||||||
@@ -130,6 +134,7 @@ QDeclarativeVideoOutput::QDeclarativeVideoOutput(QQuickItem *parent) :
|
|||||||
m_autoOrientation(false),
|
m_autoOrientation(false),
|
||||||
m_screenOrientationHandler(0)
|
m_screenOrientationHandler(0)
|
||||||
{
|
{
|
||||||
|
initResource();
|
||||||
setFlag(ItemHasContents, true);
|
setFlag(ItemHasContents, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user