Moved general gstreamer helper classes into separate library.
authorJonas Rabbe <jonas.rabbe@nokia.com>
Tue, 11 Oct 2011 05:25:36 +0000 (15:25 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 12 Oct 2011 06:58:30 +0000 (08:58 +0200)
Cleaned up configuration of gstreamer with a separate config
test.

Change-Id: I1ec9ee466233687fbcfdc544a12d9fce578e4379
Reviewed-on: http://codereview.qt-project.org/6459
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
37 files changed:
config.tests/gstreamer/gstreamer.pro [new file with mode: 0644]
config.tests/gstreamer/main.cpp [new file with mode: 0644]
src/gsttools/gsttools.pro [new file with mode: 0644]
src/gsttools/qgstreamerbushelper.cpp [moved from src/plugins/gstreamer/qgstreamerbushelper.cpp with 99% similarity]
src/gsttools/qgstreamermessage.cpp [moved from src/plugins/gstreamer/qgstreamermessage.cpp with 98% similarity]
src/gsttools/qgstutils.cpp [moved from src/plugins/gstreamer/qgstutils.cpp with 99% similarity]
src/gsttools/qgstvideobuffer.cpp [moved from src/plugins/gstreamer/qgstvideobuffer.cpp with 98% similarity]
src/gsttools/qgstxvimagebuffer.cpp [moved from src/plugins/gstreamer/qgstxvimagebuffer.cpp with 98% similarity]
src/gsttools/qvideosurfacegstsink.cpp [moved from src/plugins/gstreamer/qvideosurfacegstsink.cpp with 99% similarity]
src/multimedia/gsttools_headers/qabstractgstbufferpool_p.h [moved from src/plugins/gstreamer/qabstractgstbufferpool.h with 89% similarity]
src/multimedia/gsttools_headers/qgstreamerbushelper_p.h [moved from src/plugins/gstreamer/qgstreamerbushelper.h with 89% similarity]
src/multimedia/gsttools_headers/qgstreamermessage_p.h [moved from src/plugins/gstreamer/qgstreamermessage.h with 87% similarity]
src/multimedia/gsttools_headers/qgstutils_p.h [moved from src/plugins/gstreamer/qgstutils.h with 87% similarity]
src/multimedia/gsttools_headers/qgstvideobuffer_p.h [moved from src/plugins/gstreamer/qgstvideobuffer.h with 88% similarity]
src/multimedia/gsttools_headers/qgstxvimagebuffer_p.h [moved from src/plugins/gstreamer/qgstxvimagebuffer.h with 91% similarity]
src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h [moved from src/plugins/gstreamer/qvideosurfacegstsink.h with 93% similarity]
src/plugins/gstreamer/camerabin/camerabinimagecapture.cpp
src/plugins/gstreamer/camerabin/camerabinservice.cpp
src/plugins/gstreamer/camerabin/camerabinsession.cpp
src/plugins/gstreamer/gstreamer.pro
src/plugins/gstreamer/mediacapture/qgstreamercaptureservice.cpp
src/plugins/gstreamer/mediacapture/qgstreamercapturesession.cpp
src/plugins/gstreamer/mediacapture/qgstreamercapturesession.h
src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp
src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.h
src/plugins/gstreamer/qgstreamergltexturerenderer.cpp
src/plugins/gstreamer/qgstreamergltexturerenderer.h
src/plugins/gstreamer/qgstreamervideooverlay.cpp
src/plugins/gstreamer/qgstreamervideorenderer.cpp
src/plugins/gstreamer/qgstreamervideorenderer.h
src/plugins/gstreamer/qgstreamervideowidget.cpp
src/plugins/gstreamer/qgstreamervideowidget.h
src/plugins/gstreamer/qgstreamervideowindow.cpp
src/plugins/gstreamer/qgstreamervideowindow.h
src/plugins/plugins.pro
src/src.pro
sync.profile

diff --git a/config.tests/gstreamer/gstreamer.pro b/config.tests/gstreamer/gstreamer.pro
new file mode 100644 (file)
index 0000000..5fcd1ab
--- /dev/null
@@ -0,0 +1,20 @@
+TEMPLATE = app
+DEPENDPATH += .
+INCLUDEPATH += .
+
+requires(unix)
+
+# Input
+SOURCES += main.cpp
+
+CONFIG += link_pkgconfig
+
+PKGCONFIG += \
+    gstreamer-0.10 \
+    gstreamer-base-0.10 \
+    gstreamer-interfaces-0.10 \
+    gstreamer-audio-0.10 \
+    gstreamer-video-0.10 \
+    gstreamer-pbutils-0.10
+
+
diff --git a/config.tests/gstreamer/main.cpp b/config.tests/gstreamer/main.cpp
new file mode 100644 (file)
index 0000000..94228d1
--- /dev/null
@@ -0,0 +1,49 @@
+/****************************************************************************
+**
+** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the Qt Toolkit
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** GNU Lesser General Public License Usage
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this
+** file. Please review the following information to ensure the GNU Lesser
+** General Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU General
+** Public License version 3.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of this
+** file. Please review the following information to ensure the GNU General
+** Public License version 3.0 requirements will be met:
+** http://www.gnu.org/copyleft/gpl.html.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#define GST_USE_UNSTABLE_API
+
+#include <gst/gst.h>
+
+int main(int argc, char** argv)
+{
+    return 0;
+}
diff --git a/src/gsttools/gsttools.pro b/src/gsttools/gsttools.pro
new file mode 100644 (file)
index 0000000..778564b
--- /dev/null
@@ -0,0 +1,67 @@
+TEMPLATE = lib
+
+TARGET = qgsttools_p
+QPRO_PWD = $$PWD
+QT = core multimedia
+
+!static:DEFINES += QT_MAKEDLL
+
+unix:!maemo*:contains(QT_CONFIG, alsa) {
+DEFINES += HAVE_ALSA
+LIBS += \
+    -lasound
+}
+
+CONFIG += link_pkgconfig
+
+PKGCONFIG += \
+    gstreamer-0.10 \
+    gstreamer-base-0.10 \
+    gstreamer-interfaces-0.10 \
+    gstreamer-audio-0.10 \
+    gstreamer-video-0.10 \
+    gstreamer-pbutils-0.10
+
+maemo*:PKGCONFIG +=gstreamer-plugins-bad-0.10
+contains(config_test_gstreamer_appsrc, yes): PKGCONFIG += gstreamer-app-0.10
+
+contains(config_test_resourcepolicy, yes) {
+    DEFINES += HAVE_RESOURCE_POLICY
+    PKGCONFIG += libresourceqt1
+}
+
+# Header files must go inside source directory of a module
+# to be installed by syncqt.
+INCLUDEPATH += ../multimedia/gsttools_headers/
+DEPENDPATH += ../multimedia/gsttools_headers/
+
+PRIVATE_HEADERS += \
+    qabstractgstbufferpool_p.h \
+    qgstreamerbushelper_p.h \
+    qgstreamermessage_p.h \
+    qgstutils_p.h \
+    qgstvideobuffer_p.h \
+    qvideosurfacegstsink_p.h \
+
+SOURCES += \
+    qgstreamerbushelper.cpp \
+    qgstreamermessage.cpp \
+    qgstutils.cpp \
+    qgstvideobuffer.cpp \
+    qvideosurfacegstsink.cpp \
+
+!win32:!contains(QT_CONFIG,embedded):!mac:!simulator:!contains(QT_CONFIG, qpa) {
+    LIBS += -lXv -lX11 -lXext
+
+    PRIVATE_HEADERS += \
+        qgstxvimagebuffer_p.h \
+
+
+    SOURCES += \
+        qgstxvimagebuffer.cpp \
+}
+
+HEADERS += $$PRIVATE_HEADERS
+
+DESTDIR = $$QT.multimedia.libs
+
similarity index 99%
rename from src/plugins/gstreamer/qgstreamerbushelper.cpp
rename to src/gsttools/qgstreamerbushelper.cpp
index 92f2ee8..211c364 100644 (file)
@@ -44,7 +44,7 @@
 #include <QtCore/qmutex.h>
 #include <QtCore/qlist.h>
 
-#include "qgstreamerbushelper.h"
+#include "qgstreamerbushelper_p.h"
 
 
 #ifndef QT_NO_GLIB
similarity index 98%
rename from src/plugins/gstreamer/qgstreamermessage.cpp
rename to src/gsttools/qgstreamermessage.cpp
index d7c0978..d36fa92 100644 (file)
@@ -41,7 +41,7 @@
 
 #include <gst/gst.h>
 
-#include "qgstreamermessage.h"
+#include "qgstreamermessage_p.h"
 
 
 static int wuchi = qRegisterMetaType<QGstreamerMessage>();
similarity index 99%
rename from src/plugins/gstreamer/qgstutils.cpp
rename to src/gsttools/qgstutils.cpp
index 6f0194f..4e501e9 100644 (file)
@@ -39,7 +39,7 @@
 **
 ****************************************************************************/
 
-#include "qgstutils.h"
+#include "qgstutils_p.h"
 
 #include <QtCore/qdatetime.h>
 #include <QtCore/qbytearray.h>
similarity index 98%
rename from src/plugins/gstreamer/qgstvideobuffer.cpp
rename to src/gsttools/qgstvideobuffer.cpp
index bc12ee9..a1a93c0 100644 (file)
@@ -39,7 +39,7 @@
 **
 ****************************************************************************/
 
-#include "qgstvideobuffer.h"
+#include "qgstvideobuffer_p.h"
 
 
 QGstVideoBuffer::QGstVideoBuffer(GstBuffer *buffer, int bytesPerLine)
similarity index 98%
rename from src/plugins/gstreamer/qgstxvimagebuffer.cpp
rename to src/gsttools/qgstxvimagebuffer.cpp
index 3183992..90ca867 100644 (file)
@@ -44,9 +44,9 @@
 #include <QtCore/qvariant.h>
 #include <QtWidgets/qx11info_x11.h>
 
-#include "qgstxvimagebuffer.h"
-#include "qvideosurfacegstsink.h"
-#include "qgstvideobuffer.h"
+#include "qgstxvimagebuffer_p.h"
+#include "qvideosurfacegstsink_p.h"
+#include "qgstvideobuffer_p.h"
 
 #ifndef QT_NO_XVIDEO
 
similarity index 99%
rename from src/plugins/gstreamer/qvideosurfacegstsink.cpp
rename to src/gsttools/qvideosurfacegstsink.cpp
index 6ccc1b1..3df1401 100644 (file)
 #include <QDebug>
 #include <QThread>
 
-#include "qgstvideobuffer.h"
+#include "qgstvideobuffer_p.h"
 
 #if defined(Q_WS_X11) && !defined(QT_NO_XVIDEO)
 #include <QtWidgets/qx11info_x11.h>
-#include "qgstxvimagebuffer.h"
+#include "qgstxvimagebuffer_p.h"
 #endif
 
-#include "qvideosurfacegstsink.h"
+#include "qvideosurfacegstsink_p.h"
 
 //#define DEBUG_VIDEO_SURFACE_SINK
 
 **
 ****************************************************************************/
 
-#ifndef QGSTBUFFERPOOL_H
-#define QGSTBUFFERPOOL_H
+#ifndef QGSTBUFFERPOOL_P_H
+#define QGSTBUFFERPOOL_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
 
 #include <qabstractvideobuffer.h>
 #include <qvideosurfaceformat.h>
 **
 ****************************************************************************/
 
-#ifndef QGSTREAMERBUSHELPER_H
-#define QGSTREAMERBUSHELPER_H
+#ifndef QGSTREAMERBUSHELPER_P_H
+#define QGSTREAMERBUSHELPER_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
 
 #include <QObject>
 
-#include <qgstreamermessage.h>
+#include "qgstreamermessage_p.h"
 #include <gst/gst.h>
 
 class QGstreamerSyncMessageFilter {
 **
 ****************************************************************************/
 
-#ifndef QGSTREAMERMESSAGE_H
-#define QGSTREAMERMESSAGE_H
+#ifndef QGSTREAMERMESSAGE_P_H
+#define QGSTREAMERMESSAGE_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
 
 #include <QMetaType>
 
similarity index 87%
rename from src/plugins/gstreamer/qgstutils.h
rename to src/multimedia/gsttools_headers/qgstutils_p.h
index a6f2dab..ea99e56 100644 (file)
 **
 ****************************************************************************/
 
-#ifndef QGSTUTILS_H
-#define QGSTUTILS_H
+#ifndef QGSTUTILS_P_H
+#define QGSTUTILS_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
 
 #include <QtCore/qmap.h>
 #include <gst/gst.h>
 **
 ****************************************************************************/
 
-#ifndef QGSTVIDEOBUFFER_H
-#define QGSTVIDEOBUFFER_H
+#ifndef QGSTVIDEOBUFFER_P_H
+#define QGSTVIDEOBUFFER_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
 
 #include <qabstractvideobuffer.h>
 #include <QtCore/qvariant.h>
 **
 ****************************************************************************/
 
-#ifndef QGSTXVIMAGEBUFFER_H
-#define QGSTXVIMAGEBUFFER_H
+#ifndef QGSTXVIMAGEBUFFER_P_H
+#define QGSTXVIMAGEBUFFER_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
 
 #include <qabstractvideobuffer.h>
 #include <qvideosurfaceformat.h>
@@ -60,7 +71,7 @@
 
 
 #include <gst/gst.h>
-#include "qabstractgstbufferpool.h"
+#include "qabstractgstbufferpool_p.h"
 
 class QGstXvImageBufferPool;
 
 **
 ****************************************************************************/
 
-#ifndef VIDEOSURFACEGSTSINK_H
-#define VIDEOSURFACEGSTSINK_H
+#ifndef VIDEOSURFACEGSTSINK_P_H
+#define VIDEOSURFACEGSTSINK_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
 
 #include <gst/video/gstvideosink.h>
 
@@ -53,7 +64,7 @@
 #include <qvideoframe.h>
 #include <qabstractvideobuffer.h>
 
-#include "qabstractgstbufferpool.h"
+#include "qabstractgstbufferpool_p.h"
 
 QT_BEGIN_NAMESPACE
 class QAbstractVideoSurface;
index a73ec4b..874361e 100644 (file)
@@ -43,9 +43,9 @@
 #include "camerabincapturedestination.h"
 #include "camerabincapturebufferformat.h"
 #include "camerabinsession.h"
-#include "qgstvideobuffer.h"
-#include "qvideosurfacegstsink.h"
-#include "qgstutils.h"
+#include <private/qgstvideobuffer_p.h>
+#include <private/qvideosurfacegstsink_p.h>
+#include <private/qgstutils_p.h>
 #include <QtCore/qdebug.h>
 #include <QtCore/qbuffer.h>
 #include <QtGui/qimagereader.h>
index 3c994b0..f0aaca7 100644 (file)
@@ -46,7 +46,6 @@
 #include "camerabinaudioencoder.h"
 #include "camerabinvideoencoder.h"
 #include "camerabinimageencoder.h"
-#include "qgstreamerbushelper.h"
 #include "camerabincontrol.h"
 #include "camerabinlocks.h"
 #include "camerabinmetadata.h"
@@ -57,6 +56,7 @@
 #include "camerabinimageprocessing.h"
 #include "camerabincapturebufferformat.h"
 #include "camerabincapturedestination.h"
+#include <private/qgstreamerbushelper_p.h>
 
 #include "qgstreameraudioinputendpointselector.h"
 #include "qgstreamervideoinputdevicecontrol.h"
index 251d44d..996e149 100644 (file)
@@ -51,7 +51,7 @@
 #include "camerabinlocks.h"
 #include "camerabincapturedestination.h"
 #include "camerabincapturebufferformat.h"
-#include "qgstreamerbushelper.h"
+#include <private/qgstreamerbushelper_p.h>
 #include "qgstreamervideorendererinterface.h"
 #include <qmediarecorder.h>
 #include <gst/interfaces/photography.h>
index baec717..28becfb 100644 (file)
@@ -8,6 +8,8 @@ PLUGIN_TYPE=mediaservice
 load(qt_plugin)
 DESTDIR = $$QT.multimedia.plugins/$${PLUGIN_TYPE}
 
+LIBS += -lqgsttools_p
+
 unix:!maemo*:contains(QT_CONFIG, alsa) {
 DEFINES += HAVE_ALSA
 LIBS += \
@@ -48,33 +50,22 @@ maemo6 {
 
 # Input
 HEADERS += \
-    qgstreamermessage.h \
-    qgstreamerbushelper.h \
     qgstreamervideorendererinterface.h \
     qgstreamerserviceplugin.h \
     qgstreameraudioinputendpointselector.h \
     qgstreamervideorenderer.h \
-    qgstvideobuffer.h \
-    qvideosurfacegstsink.h \
     qgstreamervideoinputdevicecontrol.h \
     gstvideoconnector.h \
-    qabstractgstbufferpool.h \
     qgstcodecsinfo.h \
-    qgstutils.h
 
 SOURCES += \
-    qgstreamermessage.cpp \
-    qgstreamerbushelper.cpp \
     qgstreamervideorendererinterface.cpp \
     qgstreamerserviceplugin.cpp \
     qgstreameraudioinputendpointselector.cpp \
     qgstreamervideorenderer.cpp \
-    qgstvideobuffer.cpp \
-    qvideosurfacegstsink.cpp \
     qgstreamervideoinputdevicecontrol.cpp \
     qgstcodecsinfo.cpp \
     gstvideoconnector.c \
-    qgstutils.cpp
 
 
 !win32:!contains(QT_CONFIG,embedded):!mac:!simulator:!contains(QT_CONFIG, qpa) {
@@ -85,14 +76,12 @@ SOURCES += \
         qgstreamervideowindow.h \
         qgstreamervideowidget.h \
         qx11videosurface.h \
-        qgstxvimagebuffer.h
 
     SOURCES += \
         qgstreamervideooverlay.cpp \
         qgstreamervideowindow.cpp \
         qgstreamervideowidget.cpp \
         qx11videosurface.cpp \
-        qgstxvimagebuffer.cpp
 }
 include(mediaplayer/mediaplayer.pri)
 include(mediacapture/mediacapture.pri)
index d063b0e..ee64b2c 100644 (file)
@@ -46,8 +46,8 @@
 #include "qgstreameraudioencode.h"
 #include "qgstreamervideoencode.h"
 #include "qgstreamerimageencode.h"
-#include "qgstreamerbushelper.h"
 #include "qgstreamercameracontrol.h"
+#include <private/qgstreamerbushelper_p.h>
 #include "qgstreamerv4l2input.h"
 #include "qgstreamercapturemetadatacontrol.h"
 
index b685f54..8d87bb3 100644 (file)
@@ -46,8 +46,8 @@
 #include "qgstreameraudioencode.h"
 #include "qgstreamervideoencode.h"
 #include "qgstreamerimageencode.h"
-#include "qgstreamerbushelper.h"
 #include <qmediarecorder.h>
+#include <private/qgstreamerbushelper_p.h>
 
 #include <gst/gsttagsetter.h>
 #include <gst/gstversion.h>
index e4c7346..aa5a09c 100644 (file)
@@ -49,7 +49,7 @@
 
 #include <gst/gst.h>
 
-#include "qgstreamerbushelper.h"
+#include <private/qgstreamerbushelper_p.h>
 
 QT_USE_NAMESPACE
 
index 7aef906..49aa3fb 100644 (file)
 ****************************************************************************/
 
 #include "qgstreamerplayersession.h"
-#include "qgstreamerbushelper.h"
+#include <private/qgstreamerbushelper_p.h>
 
 #include "qgstreamervideorendererinterface.h"
 #include "gstvideoconnector.h"
-#include "qgstutils.h"
+#include <private/qgstutils_p.h>
 
 #include <gst/gstvalue.h>
 #include <gst/base/gstbasesrc.h>
index 208f0b5..3380e6e 100644 (file)
@@ -45,7 +45,7 @@
 #include <QObject>
 #include <QtNetwork/qnetworkrequest.h>
 #include "qgstreamerplayercontrol.h"
-#include "qgstreamerbushelper.h"
+#include <private/qgstreamerbushelper_p.h>
 #include <qmediaplayer.h>
 #include <qmediastreamscontrol.h>
 
index 615d23d..d9633aa 100644 (file)
@@ -39,9 +39,9 @@
 **
 ****************************************************************************/
 
-#include "qvideosurfacegstsink.h"
-#include "qabstractvideosurface.h"
-#include "qgstutils.h"
+#include <private/qvideosurfacegstsink_p.h>
+#include <qabstractvideosurface.h>
+#include <private/qgstutils_p.h>
 
 #include <QtGui/qevent.h>
 #include <QtWidgets/qapplication.h>
index 7a1bc65..244e07f 100644 (file)
@@ -43,8 +43,8 @@
 #define QGSTREAMERGLTEXTURERENDERER_H
 
 #include <qvideorenderercontrol.h>
-#include "qvideosurfacegstsink.h"
-#include "qgstreamerbushelper.h"
+#include <private/qvideosurfacegstsink_p.h>
+#include <private/qgstreamerbushelper_p.h>
 
 #include "qgstreamervideorendererinterface.h"
 #include <QtGui/qcolor.h>
index 851ef2b..f19ef6a 100644 (file)
 ****************************************************************************/
 
 #include "qgstreamervideooverlay.h"
-#include "qvideosurfacegstsink.h"
+#include <private/qvideosurfacegstsink_p.h>
 
 #include <qvideosurfaceformat.h>
 
-#include "qx11videosurface.h"
+#include <private/qx11videosurface_p.h>
 
 #ifndef QT_NO_XVIDEO
 
index e924f83..ead0bdc 100644 (file)
@@ -40,8 +40,8 @@
 ****************************************************************************/
 
 #include "qgstreamervideorenderer.h"
-#include "qvideosurfacegstsink.h"
-#include "qabstractvideosurface.h"
+#include <private/qvideosurfacegstsink_p.h>
+#include <qabstractvideosurface.h>
 
 #include <QEvent>
 #include <QtWidgets/QApplication>
index 4fb8dda..fbd76f6 100644 (file)
@@ -43,7 +43,7 @@
 #define QGSTREAMERVIDEORENDERER_H
 
 #include <qvideorenderercontrol.h>
-#include "qvideosurfacegstsink.h"
+#include <private/qvideosurfacegstsink_p.h>
 
 #include "qgstreamervideorendererinterface.h"
 
index 61c47f0..a0fdab7 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 #include "qgstreamervideowidget.h"
-#include "qgstutils.h"
+#include <private/qgstutils_p.h>
 
 #include <QtCore/qcoreevent.h>
 #include <QtCore/qdebug.h>
index 8f3d623..53069fa 100644 (file)
@@ -45,7 +45,7 @@
 #include <qvideowidgetcontrol.h>
 
 #include "qgstreamervideorendererinterface.h"
-#include "qgstreamerbushelper.h"
+#include <private/qgstreamerbushelper_p.h>
 
 QT_USE_NAMESPACE
 
index d8d8222..1c475bd 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 #include "qgstreamervideowindow.h"
-#include "qgstutils.h"
+#include <private/qgstutils_p.h>
 
 #include <QtCore/qdebug.h>
 
index 3a483e2..2182148 100644 (file)
@@ -45,7 +45,7 @@
 #include <qvideowindowcontrol.h>
 
 #include "qgstreamervideorendererinterface.h"
-#include "qgstreamerbushelper.h"
+#include <private/qgstreamerbushelper_p.h>
 
 QT_BEGIN_NAMESPACE
 class QAbstractVideoSurface;
index 67cc6b7..09b9461 100644 (file)
@@ -20,15 +20,8 @@ win32 {
 simulator: SUBDIRS += simulator
 
 unix:!mac {
-    TMP_GST_LIBS = \
-        gstreamer-0.10 >= 0.10.19 \
-        gstreamer-base-0.10 >= 0.10.19 \
-        gstreamer-interfaces-0.10 >= 0.10.19 \
-        gstreamer-audio-0.10 >= 0.10.19 \
-        gstreamer-video-0.10 >= 0.10.19
-
-    system(pkg-config --exists \'$${TMP_GST_LIBS}\' --print-errors): {
-        SUBDIRS += gstreamer
+    contains(config_test_gstreamer, yes) {
+       SUBDIRS += gstreamer
     } else {
         SUBDIRS += audiocapture
     }
index 735967f..f29fb11 100644 (file)
@@ -1,11 +1,18 @@
-
 TEMPLATE = subdirs
 CONFIG += ordered
 
+library_qgsttools.subdir = $$IN_PWD/gsttools
+library_qgsttools.depends = multimedia
+
 library_qtmmwidgets.subdir = $$IN_PWD/multimediawidgets
 library_qtmmwidgets.depends = multimedia
 
 SUBDIRS += multimedia
+
+contains(config_test_gstreamer, yes) {
+    SUBDIRS += library_qgsttools
+}
+
 SUBDIRS += library_qtmmwidgets
 SUBDIRS += imports
 SUBDIRS += plugins
index 6e444dc..41d2735 100644 (file)
@@ -44,6 +44,7 @@
     "evr" => {},
 
     # Linux tests
+    "gstreamer" => {},
     "gstreamer_photography" => {},
     "gstreamer_appsrc" => {},
     "pulseaudio" => {},