Fixed QtMultimedia core namespace compilation.

Change-Id: Ie276a7766bd26f3e49b2bc9c1a28ec96f1e3e4b0
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Toby Tomkins
2011-11-25 15:38:27 +10:00
committed by Qt by Nokia
parent b05819f939
commit 581564c990
46 changed files with 148 additions and 43 deletions

View File

@@ -48,7 +48,6 @@ QGstBufferPoolPlugin::QGstBufferPoolPlugin(QObject *parent) :
{ {
} }
#include "moc_qgstbufferpoolinterface_p.cpp"
QT_END_NAMESPACE QT_END_NAMESPACE
#include "moc_qgstbufferpoolinterface_p.cpp"

View File

@@ -46,6 +46,7 @@
#include "qgstreamerbushelper_p.h" #include "qgstreamerbushelper_p.h"
QT_BEGIN_NAMESPACE
#ifndef QT_NO_GLIB #ifndef QT_NO_GLIB
class QGstreamerBusHelperPrivate : public QObject class QGstreamerBusHelperPrivate : public QObject
@@ -234,4 +235,6 @@ void QGstreamerBusHelper::removeMessageFilter(QObject *filter)
d->busFilters.removeAll(busFilter); d->busFilters.removeAll(busFilter);
} }
QT_END_NAMESPACE
#include "qgstreamerbushelper.moc" #include "qgstreamerbushelper.moc"

View File

@@ -43,6 +43,7 @@
#include "qgstreamermessage_p.h" #include "qgstreamermessage_p.h"
QT_BEGIN_NAMESPACE
static int wuchi = qRegisterMetaType<QGstreamerMessage>(); static int wuchi = qRegisterMetaType<QGstreamerMessage>();
@@ -91,3 +92,5 @@ QGstreamerMessage& QGstreamerMessage::operator=(QGstreamerMessage const& rhs)
return *this; return *this;
} }
QT_END_NAMESPACE

View File

@@ -46,6 +46,8 @@
#include <QtCore/qvariant.h> #include <QtCore/qvariant.h>
#include <QtCore/qsize.h> #include <QtCore/qsize.h>
QT_BEGIN_NAMESPACE
//internal //internal
static void addTagToMap(const GstTagList *list, static void addTagToMap(const GstTagList *list,
const gchar *tag, const gchar *tag,
@@ -163,3 +165,5 @@ QSize QGstUtils::capsCorrectedResolution(const GstCaps *caps)
return size; return size;
} }
QT_END_NAMESPACE

View File

@@ -41,6 +41,7 @@
#include "qgstvideobuffer_p.h" #include "qgstvideobuffer_p.h"
QT_BEGIN_NAMESPACE
QGstVideoBuffer::QGstVideoBuffer(GstBuffer *buffer, int bytesPerLine) QGstVideoBuffer::QGstVideoBuffer(GstBuffer *buffer, int bytesPerLine)
: QAbstractVideoBuffer(NoHandle) : QAbstractVideoBuffer(NoHandle)
@@ -95,3 +96,4 @@ void QGstVideoBuffer::unmap()
m_mode = NotMapped; m_mode = NotMapped;
} }
QT_END_NAMESPACE

View File

@@ -50,6 +50,8 @@
#ifndef QT_NO_XVIDEO #ifndef QT_NO_XVIDEO
QT_BEGIN_NAMESPACE
GstBufferClass *QGstXvImageBuffer::parent_class = NULL; GstBufferClass *QGstXvImageBuffer::parent_class = NULL;
GType QGstXvImageBuffer::get_type(void) GType QGstXvImageBuffer::get_type(void)
@@ -307,5 +309,7 @@ void QGstXvImageBufferPool::destroyBuffer(QGstXvImageBuffer *xvBuffer)
QMetaObject::invokeMethod(this, "queuedDestroy", Qt::QueuedConnection); QMetaObject::invokeMethod(this, "queuedDestroy", Qt::QueuedConnection);
} }
QT_END_NAMESPACE
#endif //QT_NO_XVIDEO #endif //QT_NO_XVIDEO

View File

@@ -61,6 +61,8 @@
#include <gst/gst.h> #include <gst/gst.h>
QT_BEGIN_NAMESPACE
const QLatin1String QGstBufferPoolPluginKey("bufferpool"); const QLatin1String QGstBufferPoolPluginKey("bufferpool");
/*! /*!
@@ -118,4 +120,6 @@ public:
virtual QStringList keys() const = 0; virtual QStringList keys() const = 0;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -58,6 +58,8 @@
#include "qgstreamermessage_p.h" #include "qgstreamermessage_p.h"
#include <gst/gst.h> #include <gst/gst.h>
QT_BEGIN_NAMESPACE
class QGstreamerSyncMessageFilter { class QGstreamerSyncMessageFilter {
public: public:
//returns true if message was processed and should be dropped, false otherwise //returns true if message was processed and should be dropped, false otherwise
@@ -97,4 +99,6 @@ private:
QGstreamerBusHelperPrivate* d; QGstreamerBusHelperPrivate* d;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -57,6 +57,7 @@
#include <gst/gst.h> #include <gst/gst.h>
QT_BEGIN_NAMESPACE
class QGstreamerMessage class QGstreamerMessage
{ {
@@ -74,6 +75,8 @@ private:
GstMessage* m_message; GstMessage* m_message;
}; };
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QGstreamerMessage); Q_DECLARE_METATYPE(QGstreamerMessage);
#endif #endif

View File

@@ -56,6 +56,8 @@
#include <QtCore/qmap.h> #include <QtCore/qmap.h>
#include <gst/gst.h> #include <gst/gst.h>
QT_BEGIN_NAMESPACE
class QSize; class QSize;
class QVariant; class QVariant;
class QByteArray; class QByteArray;
@@ -67,4 +69,6 @@ namespace QGstUtils {
QSize capsCorrectedResolution(const GstCaps *caps); QSize capsCorrectedResolution(const GstCaps *caps);
} }
QT_END_NAMESPACE
#endif #endif

View File

@@ -58,6 +58,8 @@
#include <gst/gst.h> #include <gst/gst.h>
QT_BEGIN_NAMESPACE
class QGstVideoBuffer : public QAbstractVideoBuffer class QGstVideoBuffer : public QAbstractVideoBuffer
{ {
public: public:
@@ -79,5 +81,6 @@ private:
QVariant m_handle; QVariant m_handle;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -54,8 +54,6 @@
#include <QDebug> #include <QDebug>
QT_USE_NAMESPACE
namespace namespace
{ {
class CameraRegisterMetaTypes class CameraRegisterMetaTypes
@@ -74,6 +72,7 @@ public:
} _registerCameraMetaTypes; } _registerCameraMetaTypes;
} }
QT_BEGIN_NAMESPACE
/*! /*!
\class QCamera \class QCamera
@@ -1031,5 +1030,6 @@ void QCamera::unlock()
\since 1.1 \since 1.1
*/ */
QT_END_NAMESPACE
#include "moc_qcamera.cpp" #include "moc_qcamera.cpp"

View File

@@ -48,7 +48,7 @@
#include <QtCore/QDebug> #include <QtCore/QDebug>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
/*! /*!
\class QCameraViewfinder \class QCameraViewfinder
@@ -110,4 +110,6 @@ bool QCameraViewfinder::setMediaObject(QMediaObject *object)
return QVideoWidget::setMediaObject(object); return QVideoWidget::setMediaObject(object);
} }
QT_END_NAMESPACE
#include "moc_qcameraviewfinder.cpp" #include "moc_qcameraviewfinder.cpp"

View File

@@ -43,7 +43,6 @@
#define QGSTREAMERAUDIOENCODE_H #define QGSTREAMERAUDIOENCODE_H
#include <qaudioencodercontrol.h> #include <qaudioencodercontrol.h>
class QGstreamerCaptureSession;
#include <QtCore/qstringlist.h> #include <QtCore/qstringlist.h>
#include <QtCore/qmap.h> #include <QtCore/qmap.h>
@@ -53,7 +52,9 @@ class QGstreamerCaptureSession;
#include <qaudioformat.h> #include <qaudioformat.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerCaptureSession;
class QGstreamerAudioEncode : public QAudioEncoderControl class QGstreamerAudioEncode : public QAudioEncoderControl
{ {
@@ -94,4 +95,6 @@ private:
QAudioEncoderSettings m_audioSettings; QAudioEncoderSettings m_audioSettings;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -47,8 +47,7 @@
#include <qcameracontrol.h> #include <qcameracontrol.h>
#include "qgstreamercapturesession.h" #include "qgstreamercapturesession.h"
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
QT_USE_NAMESPACE
class QGstreamerCameraControl : public QCameraControl class QGstreamerCameraControl : public QCameraControl
{ {
@@ -95,4 +94,6 @@ private:
bool m_reloadPending; bool m_reloadPending;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERCAMERACONTROL_H #endif // QGSTREAMERCAMERACONTROL_H

View File

@@ -44,7 +44,7 @@
#include <qmetadatawritercontrol.h> #include <qmetadatawritercontrol.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerCaptureMetaDataControl : public QMetaDataWriterControl class QGstreamerCaptureMetaDataControl : public QMetaDataWriterControl
{ {
@@ -72,4 +72,6 @@ private:
QMap<QByteArray, QVariant> m_values; QMap<QByteArray, QVariant> m_values;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERCAPTUREMETADATACONTROL_H #endif // QGSTREAMERCAPTUREMETADATACONTROL_H

View File

@@ -62,6 +62,7 @@
#include <qmediaserviceprovider.h> #include <qmediaserviceprovider.h>
QT_BEGIN_NAMESPACE
QGstreamerCaptureService::QGstreamerCaptureService(const QString &service, QObject *parent): QGstreamerCaptureService::QGstreamerCaptureService(const QString &service, QObject *parent):
QMediaService(parent) QMediaService(parent)
@@ -182,3 +183,5 @@ void QGstreamerCaptureService::releaseControl(QMediaControl *control)
m_captureSession->setVideoPreview(0); m_captureSession->setVideoPreview(0);
} }
} }
QT_END_NAMESPACE

View File

@@ -49,7 +49,6 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QAudioEndpointSelector; class QAudioEndpointSelector;
class QVideoDeviceControl; class QVideoDeviceControl;
QT_END_NAMESPACE
class QGstreamerCaptureSession; class QGstreamerCaptureSession;
class QGstreamerCameraControl; class QGstreamerCameraControl;
@@ -93,4 +92,6 @@ private:
QGstreamerImageCaptureControl *m_imageCaptureControl; QGstreamerImageCaptureControl *m_imageCaptureControl;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERCAPTURESERVICE_H #endif // QGSTREAMERCAPTURESERVICE_H

View File

@@ -61,6 +61,8 @@
#include <QtGui/qimage.h> #include <QtGui/qimage.h>
QT_BEGIN_NAMESPACE
#define gstRef(element) { gst_object_ref(GST_OBJECT(element)); gst_object_sink(GST_OBJECT(element)); } #define gstRef(element) { gst_object_ref(GST_OBJECT(element)); gst_object_sink(GST_OBJECT(element)); }
#define gstUnref(element) { if (element) { gst_object_unref(GST_OBJECT(element)); element = 0; } } #define gstUnref(element) { if (element) { gst_object_unref(GST_OBJECT(element)); element = 0; } }
@@ -1022,3 +1024,5 @@ void QGstreamerCaptureSession::setMuted(bool muted)
emit mutedChanged(muted); emit mutedChanged(muted);
} }
} }
QT_END_NAMESPACE

View File

@@ -51,7 +51,7 @@
#include <private/qgstreamerbushelper_p.h> #include <private/qgstreamerbushelper_p.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerMessage; class QGstreamerMessage;
class QGstreamerBusHelper; class QGstreamerBusHelper;
@@ -208,4 +208,6 @@ public:
int m_imageRequestId; int m_imageRequestId;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERCAPTURESESSION_H #endif // QGSTREAMERCAPTURESESSION_H

View File

@@ -45,7 +45,8 @@
#include <qcameraimagecapturecontrol.h> #include <qcameraimagecapturecontrol.h>
#include "qgstreamercapturesession.h" #include "qgstreamercapturesession.h"
QT_USE_NAMESPACE
QT_BEGIN_NAMESPACE
class QGstreamerImageCaptureControl : public QCameraImageCaptureControl class QGstreamerImageCaptureControl : public QCameraImageCaptureControl
{ {
@@ -70,4 +71,6 @@ private:
int m_lastId; int m_lastId;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERCAPTURECORNTROL_H #endif // QGSTREAMERCAPTURECORNTROL_H

View File

@@ -42,15 +42,16 @@
#ifndef QGSTREAMERIMAGEENCODE_H #ifndef QGSTREAMERIMAGEENCODE_H
#define QGSTREAMERIMAGEENCODE_H #define QGSTREAMERIMAGEENCODE_H
class QGstreamerCaptureSession;
#include <qimageencodercontrol.h> #include <qimageencodercontrol.h>
#include <QtCore/qstringlist.h> #include <QtCore/qstringlist.h>
#include <QtCore/qmap.h> #include <QtCore/qmap.h>
#include <gst/gst.h> #include <gst/gst.h>
QT_USE_NAMESPACE
QT_BEGIN_NAMESPACE
class QGstreamerCaptureSession;
class QGstreamerImageEncode : public QImageEncoderControl class QGstreamerImageEncode : public QImageEncoderControl
{ {
@@ -77,4 +78,6 @@ private:
QGstreamerCaptureSession *m_session; QGstreamerCaptureSession *m_session;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -49,7 +49,7 @@
#include <gst/gst.h> #include <gst/gst.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerMediaContainerControl : public QMediaContainerControl class QGstreamerMediaContainerControl : public QMediaContainerControl
{ {
@@ -81,4 +81,6 @@ private:
QMap<QString, QSet<QString> > m_streamTypes; QMap<QString, QSet<QString> > m_streamTypes;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERMEDIACONTAINERCONTROL_H #endif // QGSTREAMERMEDIACONTAINERCONTROL_H

View File

@@ -48,7 +48,7 @@
#include <qmediarecordercontrol.h> #include <qmediarecordercontrol.h>
#include "qgstreamercapturesession.h" #include "qgstreamercapturesession.h"
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerRecorderControl : public QMediaRecorderControl class QGstreamerRecorderControl : public QMediaRecorderControl
{ {
@@ -88,4 +88,6 @@ private:
bool m_hasPreviewState; bool m_hasPreviewState;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERCAPTURECORNTROL_H #endif // QGSTREAMERCAPTURECORNTROL_H

View File

@@ -49,7 +49,7 @@
#include <QtCore/qsize.h> #include <QtCore/qsize.h>
#include "qgstreamercapturesession.h" #include "qgstreamercapturesession.h"
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerV4L2Input : public QObject, public QGstreamerVideoInput class QGstreamerV4L2Input : public QObject, public QGstreamerVideoInput
{ {
@@ -80,4 +80,6 @@ private:
QByteArray m_device; QByteArray m_device;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERV4L2INPUT_H #endif // QGSTREAMERV4L2INPUT_H

View File

@@ -43,7 +43,6 @@
#define QGSTREAMERVIDEOENCODE_H #define QGSTREAMERVIDEOENCODE_H
#include <qvideoencodercontrol.h> #include <qvideoencodercontrol.h>
class QGstreamerCaptureSession;
#include <QtCore/qstringlist.h> #include <QtCore/qstringlist.h>
#include <QtCore/qmap.h> #include <QtCore/qmap.h>
@@ -51,7 +50,9 @@ class QGstreamerCaptureSession;
#include <gst/gst.h> #include <gst/gst.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerCaptureSession;
class QGstreamerVideoEncode : public QVideoEncoderControl class QGstreamerVideoEncode : public QVideoEncoderControl
{ {
@@ -95,4 +96,6 @@ private:
QMap<QString, QSet<QString> > m_streamTypes; QMap<QString, QSet<QString> > m_streamTypes;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -45,6 +45,8 @@
#include <gst/gstversion.h> #include <gst/gstversion.h>
QT_BEGIN_NAMESPACE
struct QGstreamerMetaDataKeyLookup struct QGstreamerMetaDataKeyLookup
{ {
QtMultimedia::MetaData key; QtMultimedia::MetaData key;
@@ -190,3 +192,5 @@ void QGstreamerMetaDataProvider::updateTags()
{ {
emit metaDataChanged(); emit metaDataChanged();
} }
QT_END_NAMESPACE

View File

@@ -44,7 +44,7 @@
#include <qmetadatareadercontrol.h> #include <qmetadatareadercontrol.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerPlayerSession; class QGstreamerPlayerSession;
@@ -71,4 +71,6 @@ private:
QGstreamerPlayerSession *m_session; QGstreamerPlayerSession *m_session;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERMETADATAPROVIDER_H #endif // QGSTREAMERMETADATAPROVIDER_H

View File

@@ -58,6 +58,8 @@
//#define DEBUG_PLAYBIN //#define DEBUG_PLAYBIN
QT_BEGIN_NAMESPACE
QGstreamerPlayerControl::QGstreamerPlayerControl(QGstreamerPlayerSession *session, QObject *parent) QGstreamerPlayerControl::QGstreamerPlayerControl(QGstreamerPlayerSession *session, QObject *parent)
: QMediaPlayerControl(parent) : QMediaPlayerControl(parent)
, m_ownStream(false) , m_ownStream(false)
@@ -773,3 +775,5 @@ void QGstreamerPlayerControl::updatePosition(qint64 pos)
emit positionChanged(pos); emit positionChanged(pos);
} }
QT_END_NAMESPACE

View File

@@ -50,17 +50,15 @@
#include <limits.h> #include <limits.h>
class PlayerResourcePolicy;
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QMediaPlaylist; class QMediaPlaylist;
class QMediaPlaylistNavigator; class QMediaPlaylistNavigator;
class QSocketNotifier; class QSocketNotifier;
QT_END_NAMESPACE
QT_USE_NAMESPACE
class QGstreamerPlayerSession; class QGstreamerPlayerSession;
class QGstreamerPlayerService; class QGstreamerPlayerService;
class PlayerResourcePolicy;
class QGstreamerPlayerControl : public QMediaPlayerControl class QGstreamerPlayerControl : public QMediaPlayerControl
{ {
@@ -155,4 +153,6 @@ private:
PlayerResourcePolicy *m_resources; PlayerResourcePolicy *m_resources;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -62,6 +62,8 @@
#include <qmediaplaylistnavigator.h> #include <qmediaplaylistnavigator.h>
#include <qmediaplaylist.h> #include <qmediaplaylist.h>
QT_BEGIN_NAMESPACE
QGstreamerPlayerService::QGstreamerPlayerService(QObject *parent): QGstreamerPlayerService::QGstreamerPlayerService(QObject *parent):
QMediaService(parent), QMediaService(parent),
m_videoOutput(0), m_videoOutput(0),
@@ -132,3 +134,4 @@ void QGstreamerPlayerService::releaseControl(QMediaControl *control)
} }
} }
QT_END_NAMESPACE

View File

@@ -52,7 +52,6 @@ class QMediaMetaData;
class QMediaPlayerControl; class QMediaPlayerControl;
class QMediaPlaylist; class QMediaPlaylist;
class QMediaPlaylistNavigator; class QMediaPlaylistNavigator;
QT_END_NAMESPACE
class QGstreamerMetaData; class QGstreamerMetaData;
class QGstreamerPlayerControl; class QGstreamerPlayerControl;
@@ -63,8 +62,6 @@ class QGstreamerVideoRenderer;
class QGstreamerVideoOverlay; class QGstreamerVideoOverlay;
class QGstreamerVideoWidgetControl; class QGstreamerVideoWidgetControl;
QT_USE_NAMESPACE
class QGstreamerPlayerService : public QMediaService class QGstreamerPlayerService : public QMediaService
{ {
Q_OBJECT Q_OBJECT
@@ -87,4 +84,6 @@ private:
QMediaControl *m_videoWidget; QMediaControl *m_videoWidget;
}; };
QT_END_NAMESPACE
#endif #endif

View File

@@ -64,6 +64,8 @@
//#define DEBUG_PLAYBIN //#define DEBUG_PLAYBIN
//#define DEBUG_VO_BIN_DUMP //#define DEBUG_VO_BIN_DUMP
QT_BEGIN_NAMESPACE
typedef enum { typedef enum {
GST_PLAY_FLAG_VIDEO = 0x00000001, GST_PLAY_FLAG_VIDEO = 0x00000001,
GST_PLAY_FLAG_AUDIO = 0x00000002, GST_PLAY_FLAG_AUDIO = 0x00000002,
@@ -1616,3 +1618,5 @@ void QGstreamerPlayerSession::showPrerollFrames(bool enabled)
m_displayPrerolledFrame = enabled; m_displayPrerolledFrame = enabled;
} }
} }
QT_END_NAMESPACE

View File

@@ -55,13 +55,13 @@
#include <gst/gst.h> #include <gst/gst.h>
QT_BEGIN_NAMESPACE
class QGstreamerBusHelper; class QGstreamerBusHelper;
class QGstreamerMessage; class QGstreamerMessage;
class QGstreamerVideoRendererInterface; class QGstreamerVideoRendererInterface;
QT_USE_NAMESPACE
class QGstreamerPlayerSession : public QObject, class QGstreamerPlayerSession : public QObject,
public QGstreamerBusMessageFilter public QGstreamerBusMessageFilter
{ {
@@ -226,4 +226,6 @@ private:
bool m_isLiveSource; bool m_isLiveSource;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERPLAYERSESSION_H #endif // QGSTREAMERPLAYERSESSION_H

View File

@@ -44,7 +44,7 @@
#include <qmediastreamscontrol.h> #include <qmediastreamscontrol.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerPlayerSession; class QGstreamerPlayerSession;
@@ -67,5 +67,7 @@ private:
QGstreamerPlayerSession *m_session; QGstreamerPlayerSession *m_session;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERSTREAMSCONTROL_H #endif // QGSTREAMERSTREAMSCONTROL_H

View File

@@ -45,7 +45,7 @@
#include <qaudioendpointselector.h> #include <qaudioendpointselector.h>
#include <QtCore/qstringlist.h> #include <QtCore/qstringlist.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerAudioInputEndpointSelector : public QAudioEndpointSelector class QGstreamerAudioInputEndpointSelector : public QAudioEndpointSelector
{ {
@@ -73,4 +73,6 @@ private:
QList<QString> m_descriptions; QList<QString> m_descriptions;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERAUDIOINPUTENDPOINTSELECTOR_H #endif // QGSTREAMERAUDIOINPUTENDPOINTSELECTOR_H

View File

@@ -51,7 +51,7 @@
#include <X11/extensions/Xv.h> #include <X11/extensions/Xv.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGLContext; class QGLContext;
@@ -127,4 +127,6 @@ private:
QWaitCondition m_renderCondition; QWaitCondition m_renderCondition;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERVIDEORENDRER_H #endif // QGSTREAMERVIDEORENDRER_H

View File

@@ -46,7 +46,7 @@
#include <qmediaserviceproviderplugin.h> #include <qmediaserviceproviderplugin.h>
#include <QtCore/qset.h> #include <QtCore/qset.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerServicePlugin class QGstreamerServicePlugin
@@ -83,4 +83,6 @@ private:
void updateSupportedMimeTypes() const; void updateSupportedMimeTypes() const;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERSERVICEPLUGIN_H #endif // QGSTREAMERSERVICEPLUGIN_H

View File

@@ -45,7 +45,7 @@
#include <qvideodevicecontrol.h> #include <qvideodevicecontrol.h>
#include <QtCore/qstringlist.h> #include <QtCore/qstringlist.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerVideoInputDeviceControl : public QVideoDeviceControl class QGstreamerVideoInputDeviceControl : public QVideoDeviceControl
{ {
@@ -74,4 +74,6 @@ private:
QStringList m_descriptions; QStringList m_descriptions;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERAUDIOINPUTDEVICECONTROL_H #endif // QGSTREAMERAUDIOINPUTDEVICECONTROL_H

View File

@@ -53,7 +53,7 @@ class QX11VideoSurface;
#if defined(Q_WS_X11) && !defined(QT_NO_XVIDEO) #if defined(Q_WS_X11) && !defined(QT_NO_XVIDEO)
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerVideoOverlay : public QVideoWindowControl, public QGstreamerVideoRendererInterface class QGstreamerVideoOverlay : public QVideoWindowControl, public QGstreamerVideoRendererInterface
{ {
@@ -114,6 +114,8 @@ private:
bool m_fullScreen; bool m_fullScreen;
}; };
QT_END_NAMESPACE
#endif //QT_NO_XVIDEO #endif //QT_NO_XVIDEO
#endif #endif

View File

@@ -47,7 +47,7 @@
#include "qgstreamervideorendererinterface.h" #include "qgstreamervideorendererinterface.h"
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerVideoRenderer : public QVideoRendererControl, public QGstreamerVideoRendererInterface class QGstreamerVideoRenderer : public QVideoRendererControl, public QGstreamerVideoRendererInterface
{ {
@@ -76,4 +76,6 @@ private:
QAbstractVideoSurface *m_surface; QAbstractVideoSurface *m_surface;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERVIDEORENDRER_H #endif // QGSTREAMERVIDEORENDRER_H

View File

@@ -46,6 +46,8 @@
#include <QtCore/qobject.h> #include <QtCore/qobject.h>
QT_BEGIN_NAMESPACE
class QGstreamerVideoRendererInterface class QGstreamerVideoRendererInterface
{ {
public: public:
@@ -67,7 +69,6 @@ public:
}; };
#define QGstreamerVideoRendererInterface_iid "com.nokia.Qt.QGstreamerVideoRendererInterface/1.0" #define QGstreamerVideoRendererInterface_iid "com.nokia.Qt.QGstreamerVideoRendererInterface/1.0"
QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(QGstreamerVideoRendererInterface, QGstreamerVideoRendererInterface_iid) Q_DECLARE_INTERFACE(QGstreamerVideoRendererInterface, QGstreamerVideoRendererInterface_iid)
QT_END_NAMESPACE QT_END_NAMESPACE

View File

@@ -47,7 +47,7 @@
#include "qgstreamervideorendererinterface.h" #include "qgstreamervideorendererinterface.h"
#include <private/qgstreamerbushelper_p.h> #include <private/qgstreamerbushelper_p.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerVideoWidget; class QGstreamerVideoWidget;
@@ -109,4 +109,6 @@ private:
bool m_fullScreen; bool m_fullScreen;
}; };
QT_END_NAMESPACE
#endif // QGSTREAMERVIDEOWIDGET_H #endif // QGSTREAMERVIDEOWIDGET_H

View File

@@ -54,7 +54,7 @@ class QX11VideoSurface;
#if defined(Q_WS_X11) && !defined(QT_NO_XVIDEO) #if defined(Q_WS_X11) && !defined(QT_NO_XVIDEO)
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QGstreamerVideoWindow : public QVideoWindowControl, class QGstreamerVideoWindow : public QVideoWindowControl,
public QGstreamerVideoRendererInterface, public QGstreamerVideoRendererInterface,
@@ -129,6 +129,8 @@ private:
int m_bufferProbeId; int m_bufferProbeId;
}; };
QT_END_NAMESPACE
#endif //QT_NO_XVIDEO #endif //QT_NO_XVIDEO
#endif #endif

View File

@@ -51,7 +51,7 @@
#include <X11/extensions/Xv.h> #include <X11/extensions/Xv.h>
#include <X11/extensions/Xvlib.h> #include <X11/extensions/Xvlib.h>
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE
class QX11VideoSurface : public QAbstractVideoSurface class QX11VideoSurface : public QAbstractVideoSurface
{ {
@@ -112,6 +112,8 @@ private:
static int redistribute(int value, int fromLower, int fromUpper, int toLower, int toUpper); static int redistribute(int value, int fromLower, int fromUpper, int toLower, int toUpper);
}; };
QT_END_NAMESPACE
#endif //QT_NO_XVIDEO #endif //QT_NO_XVIDEO
#endif #endif

View File

@@ -66,6 +66,6 @@ private:
QPulseAudioEngine *m_pulseEngine; QPulseAudioEngine *m_pulseEngine;
}; };
QT_BEGIN_NAMESPACE QT_END_NAMESPACE
#endif #endif