summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qtmultimediaquicktools/qdeclarativevideooutput.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp b/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
index c638b3065..7a9dfdaa7 100644
--- a/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
+++ b/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
@@ -41,6 +41,10 @@
#include <private/qmediapluginloader_p.h>
#include <QtCore/qloggingcategory.h>
+static void initResource() {
+ Q_INIT_RESOURCE(qtmultimediaquicktools);
+}
+
QT_BEGIN_NAMESPACE
Q_LOGGING_CATEGORY(qLcVideo, "qt.multimedia.video")
@@ -130,6 +134,7 @@ QDeclarativeVideoOutput::QDeclarativeVideoOutput(QQuickItem *parent) :
m_autoOrientation(false),
m_screenOrientationHandler(0)
{
+ initResource();
setFlag(ItemHasContents, true);
}