diff options
author | Andras Mantia <andras@kdab.com> | 2015-05-15 10:49:50 +0300 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2015-05-20 09:59:27 +0000 |
commit | 4be995d251c63a60c6f85813636c85a721ee84e8 (patch) | |
tree | c92afd5c696b37f0a0e11d4b667442a3fb4f50bc /src | |
parent | 5fab28b58128f6424eca0f63147f384fd916704f (diff) | |
download | qtmultimedia-4be995d251c63a60c6f85813636c85a721ee84e8.tar.gz |
Initialize the resource, so it can be used from static libraries.
Change-Id: If28509a991fb464dc587705ce62af66b528fdd97
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/qtmultimediaquicktools/qdeclarativevideooutput.cpp | 5 |
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); } |