diff options
author | Jonas Rabbe <jonas.rabbe@nokia.com> | 2011-12-09 11:45:11 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-13 01:22:28 +0100 |
commit | 4f3294930af1ea4350bc8dd5225afd17591f16cd (patch) | |
tree | 9d941147930f09cf568884030783a0a4dbaff11e /src/multimedia | |
parent | 9d526fca670ba90c8ad433f60bd94f9b9975e18d (diff) |
Fix X11 and QPA compilation problems
The X11 buffer pool was using outdated APIs, and as the 'qpa'
configuration value is being removed, it caused the X11 code
to be pulled in, and therefore cause compilation failures.
Change-Id: I5fdaed854c6525716fccca44b5fbd0b850880cb9
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'src/multimedia')
-rw-r--r-- | src/multimedia/gsttools_headers/qgstxvimagebuffer_p.h | 16 | ||||
-rw-r--r-- | src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h | 2 |
2 files changed, 11 insertions, 7 deletions
diff --git a/src/multimedia/gsttools_headers/qgstxvimagebuffer_p.h b/src/multimedia/gsttools_headers/qgstxvimagebuffer_p.h index 6fd7eb769..45f1953aa 100644 --- a/src/multimedia/gsttools_headers/qgstxvimagebuffer_p.h +++ b/src/multimedia/gsttools_headers/qgstxvimagebuffer_p.h @@ -59,8 +59,6 @@ #include <QtCore/qwaitcondition.h> #include <QtCore/qqueue.h> -#ifndef QT_NO_XVIDEO - #include <X11/Xlib.h> #include <sys/ipc.h> #include <sys/shm.h> @@ -69,10 +67,11 @@ #include <X11/extensions/Xv.h> #include <X11/extensions/Xvlib.h> - #include <gst/gst.h> #include "qgstbufferpoolinterface_p.h" +QT_BEGIN_NAMESPACE + class QGstXvImageBufferPool; struct QGstXvImageBuffer { @@ -92,8 +91,9 @@ struct QGstXvImageBuffer { Q_DECLARE_METATYPE(XvImage*) class QGstXvImageBufferPool : public QObject, public QGstBufferPoolInterface { -Q_OBJECT -friend class QGstXvImageBuffer; + Q_OBJECT + Q_INTERFACES(QGstBufferPoolInterface) + friend class QGstXvImageBuffer; public: QGstXvImageBufferPool(QObject *parent = 0); virtual ~QGstXvImageBufferPool(); @@ -107,6 +107,8 @@ public: QAbstractVideoBuffer::HandleType handleType() const; QAbstractVideoBuffer *prepareVideoBuffer(GstBuffer *buffer, int bytesPerLine); + virtual QStringList keys() const; + private slots: void queuedAlloc(); void queuedDestroy(); @@ -119,6 +121,8 @@ private slots: private: void doAlloc(); + Display *display() const; + struct XvShmImage { XvImage *xvImage; XShmSegmentInfo shmInfo; @@ -136,6 +140,6 @@ private: Qt::HANDLE m_threadId; }; -#endif //QT_NO_XVIDEO +QT_END_NAMESPACE #endif diff --git a/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h b/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h index 55147ef38..3aa865f7c 100644 --- a/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h +++ b/src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h @@ -70,7 +70,7 @@ QT_BEGIN_NAMESPACE class QAbstractVideoSurface; QT_END_NAMESPACE -#if defined(Q_WS_X11) && !defined(QT_NO_XVIDEO) +#ifdef HAVE_XVIDEO class QGstXvImageBuffer; class QGstXvImageBufferPool; #endif |