VideoOutput: release video frames when the video surface is stopped.

It's necessary to release video frames during media pipeline shutdown
or reconfiguration.

Change-Id: I386ad4d173b8731f257ec9272ef8c46a27769bd0
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Dmytro Poplavskiy
2011-11-18 13:23:21 +10:00
committed by Qt by Nokia
parent 0e021ea4d1
commit 290523bc4c
3 changed files with 24 additions and 0 deletions

View File

@@ -48,6 +48,7 @@
#include <QtMultimedia/qmediaobject.h>
#include <QtCore/qsharedpointer.h>
#include <QtCore/qmutex.h>
#include "qsgvideonode_p.h"
@@ -103,6 +104,7 @@ private:
};
void present(const QVideoFrame &frame);
void stop();
friend class QSGVideoItemSurface;
@@ -120,6 +122,8 @@ private:
QSize m_nativeSize;
QRectF m_boundingRect;
QRectF m_sourceRect;
QMutex m_frameMutex;
};
QT_END_NAMESPACE