diff options
author | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-05-04 11:56:22 +0200 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-05-11 11:14:04 +0200 |
commit | f48e16dc45cde8f634823c40aa573b18673cf13d (patch) | |
tree | e2c5f75671012fd341390f88401cdd3d3a9efcf8 /src/plugins/videonode/imx6/qsgvivantevideomaterial.h | |
parent | 516448c651507fc18210108efd68bf6103c570e0 (diff) |
Vivante: Keep only one frame
The imx6 vivante implementation of videonode used by qtvideosink
holds reference to two frames during rendering.
It releases the first frame only when it receives the third frame.
This makes jerky playback when frames are not coming at constant rate.
It displays the previous frame during video playback.
Change-Id: If306bdcd358fac46a1fd0000ccb068424aee813a
Reviewed-by: Karim Pinter <karim.pinter@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/plugins/videonode/imx6/qsgvivantevideomaterial.h')
-rw-r--r-- | src/plugins/videonode/imx6/qsgvivantevideomaterial.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/videonode/imx6/qsgvivantevideomaterial.h b/src/plugins/videonode/imx6/qsgvivantevideomaterial.h index adbd960a4..db59e8fc7 100644 --- a/src/plugins/videonode/imx6/qsgvivantevideomaterial.h +++ b/src/plugins/videonode/imx6/qsgvivantevideomaterial.h @@ -78,7 +78,7 @@ private: QVideoFrame::PixelFormat mFormat; QMap<const uchar*, GLuint> mBitsToTextureMap; - QVideoFrame mCurrentFrame, mNextFrame; + QVideoFrame mCurrentFrame; GLuint mCurrentTexture; bool mMappable; GLenum mMapError = GL_NO_ERROR; |