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:
committed by
Qt by Nokia
parent
0e021ea4d1
commit
290523bc4c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user