Changed QVideoSurfaceGstSink to take pools from plugins

Change-Id: Iec743efc52513e2000276b9a18d1d9639c270699
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
This commit is contained in:
Jonas Rabbe
2011-11-08 12:38:02 +10:00
committed by Qt by Nokia
parent 34cdc41a93
commit 956526a9fb
6 changed files with 118 additions and 16 deletions

View File

@@ -64,7 +64,7 @@
#include <qvideoframe.h>
#include <qabstractvideobuffer.h>
#include "qabstractgstbufferpool_p.h"
#include "qgstbufferpoolinterface_p.h"
QT_BEGIN_NAMESPACE
class QAbstractVideoSurface;
@@ -92,7 +92,7 @@ public:
bool isActive();
QAbstractGstBufferPool *pool() { return m_pool; }
QGstBufferPoolInterface *pool() { return m_pool; }
QMutex *poolMutex() { return &m_poolMutex; }
GstFlowReturn render(GstBuffer *buffer);
@@ -109,8 +109,8 @@ private:
QList<QVideoFrame::PixelFormat> m_supportedPixelFormats;
//pixel formats of buffers pool native type
QList<QVideoFrame::PixelFormat> m_supportedPoolPixelFormats;
QAbstractGstBufferPool *m_pool;
QList<QAbstractGstBufferPool *> m_pools;
QGstBufferPoolInterface *m_pool;
QList<QGstBufferPoolInterface *> m_pools;
QMutex m_poolMutex;
QMutex m_mutex;
QWaitCondition m_setupCondition;