Merge lp:~timo-jyrinki/qtvideo-node/port_to_qt55 into lp:qtvideo-node
- port_to_qt55
- Merge into trunk
Proposed by
Timo Jyrinki
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jim Hodapp | ||||
Approved revision: | 66 | ||||
Merged at revision: | 66 | ||||
Proposed branch: | lp:~timo-jyrinki/qtvideo-node/port_to_qt55 | ||||
Merge into: | lp:qtvideo-node | ||||
Diff against target: |
313 lines (+70/-78) 7 files modified
src/private/qtmultimediaquickdefs_p.h (+14/-22) src/qsgvideonode_p.cpp (+15/-23) src/qsgvideonode_p.h (+23/-25) src/shadervideonode.cpp (+10/-1) src/shadervideonode.h (+3/-2) src/shadervideonodeplugin.h (+1/-1) unittests/shadervideonode/tst_shadervideonode.cpp (+4/-4) |
||||
To merge this branch: | bzr merge lp:~timo-jyrinki/qtvideo-node/port_to_qt55 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jim Hodapp (community) | code | Approve | |
PS Jenkins bot | continuous-integration | Needs Fixing | |
Review via email: mp+273789@code.launchpad.net |
Commit message
Port to Qt 5.5 to fix video playback (LP: #1474695)
Description of the change
To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : | # |
review:
Needs Fixing
(continuous-integration)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'src/private/qtmultimediaquickdefs_p.h' | |||
2 | --- src/private/qtmultimediaquickdefs_p.h 2014-01-31 08:54:55 +0000 | |||
3 | +++ src/private/qtmultimediaquickdefs_p.h 2015-10-08 07:11:57 +0000 | |||
4 | @@ -1,40 +1,32 @@ | |||
5 | 1 | /**************************************************************************** | 1 | /**************************************************************************** |
6 | 2 | ** | 2 | ** |
9 | 3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). | 3 | ** Copyright (C) 2015 The Qt Company Ltd. |
10 | 4 | ** Contact: http://www.qt-project.org/legal | 4 | ** Contact: http://www.qt.io/licensing/ |
11 | 5 | ** | 5 | ** |
12 | 6 | ** This file is part of the Qt Toolkit. | 6 | ** This file is part of the Qt Toolkit. |
13 | 7 | ** | 7 | ** |
15 | 8 | ** $QT_BEGIN_LICENSE:LGPL$ | 8 | ** $QT_BEGIN_LICENSE:LGPL21$ |
16 | 9 | ** Commercial License Usage | 9 | ** Commercial License Usage |
17 | 10 | ** Licensees holding valid commercial Qt licenses may use this file in | 10 | ** Licensees holding valid commercial Qt licenses may use this file in |
18 | 11 | ** accordance with the commercial license agreement provided with the | 11 | ** accordance with the commercial license agreement provided with the |
19 | 12 | ** Software or, alternatively, in accordance with the terms contained in | 12 | ** Software or, alternatively, in accordance with the terms contained in |
23 | 13 | ** a written agreement between you and Digia. For licensing terms and | 13 | ** a written agreement between you and The Qt Company. For licensing terms |
24 | 14 | ** conditions see http://qt.digia.com/licensing. For further information | 14 | ** and conditions see http://www.qt.io/terms-conditions. For further |
25 | 15 | ** use the contact form at http://qt.digia.com/contact-us. | 15 | ** information use the contact form at http://www.qt.io/contact-us. |
26 | 16 | ** | 16 | ** |
27 | 17 | ** GNU Lesser General Public License Usage | 17 | ** GNU Lesser General Public License Usage |
28 | 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
34 | 19 | ** General Public License version 2.1 as published by the Free Software | 19 | ** General Public License version 2.1 or version 3 as published by the Free |
35 | 20 | ** Foundation and appearing in the file LICENSE.LGPL included in the | 20 | ** Software Foundation and appearing in the file LICENSE.LGPLv21 and |
36 | 21 | ** packaging of this file. Please review the following information to | 21 | ** LICENSE.LGPLv3 included in the packaging of this file. Please review the |
37 | 22 | ** ensure the GNU Lesser General Public License version 2.1 requirements | 22 | ** following information to ensure the GNU Lesser General Public License |
38 | 23 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | 23 | ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and |
39 | 24 | ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | ||
40 | 24 | ** | 25 | ** |
43 | 25 | ** In addition, as a special exception, Digia gives you certain additional | 26 | ** As a special exception, The Qt Company gives you certain additional |
44 | 26 | ** rights. These rights are described in the Digia Qt LGPL Exception | 27 | ** rights. These rights are described in The Qt Company LGPL Exception |
45 | 27 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | 28 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
46 | 28 | ** | 29 | ** |
47 | 29 | ** GNU General Public License Usage | ||
48 | 30 | ** Alternatively, this file may be used under the terms of the GNU | ||
49 | 31 | ** General Public License version 3.0 as published by the Free Software | ||
50 | 32 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
51 | 33 | ** packaging of this file. Please review the following information to | ||
52 | 34 | ** ensure the GNU General Public License version 3.0 requirements will be | ||
53 | 35 | ** met: http://www.gnu.org/copyleft/gpl.html. | ||
54 | 36 | ** | ||
55 | 37 | ** | ||
56 | 38 | ** $QT_END_LICENSE$ | 30 | ** $QT_END_LICENSE$ |
57 | 39 | ** | 31 | ** |
58 | 40 | ****************************************************************************/ | 32 | ****************************************************************************/ |
59 | 41 | 33 | ||
60 | === modified file 'src/qsgvideonode_p.cpp' | |||
61 | --- src/qsgvideonode_p.cpp 2014-06-06 14:54:20 +0000 | |||
62 | +++ src/qsgvideonode_p.cpp 2015-10-08 07:11:57 +0000 | |||
63 | @@ -1,45 +1,37 @@ | |||
64 | 1 | /**************************************************************************** | 1 | /**************************************************************************** |
65 | 2 | ** | 2 | ** |
68 | 3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). | 3 | ** Copyright (C) 2015 The Qt Company Ltd. |
69 | 4 | ** Contact: http://www.qt-project.org/legal | 4 | ** Contact: http://www.qt.io/licensing/ |
70 | 5 | ** | 5 | ** |
71 | 6 | ** This file is part of the Qt Toolkit. | 6 | ** This file is part of the Qt Toolkit. |
72 | 7 | ** | 7 | ** |
74 | 8 | ** $QT_BEGIN_LICENSE:LGPL$ | 8 | ** $QT_BEGIN_LICENSE:LGPL21$ |
75 | 9 | ** Commercial License Usage | 9 | ** Commercial License Usage |
76 | 10 | ** Licensees holding valid commercial Qt licenses may use this file in | 10 | ** Licensees holding valid commercial Qt licenses may use this file in |
77 | 11 | ** accordance with the commercial license agreement provided with the | 11 | ** accordance with the commercial license agreement provided with the |
78 | 12 | ** Software or, alternatively, in accordance with the terms contained in | 12 | ** Software or, alternatively, in accordance with the terms contained in |
82 | 13 | ** a written agreement between you and Digia. For licensing terms and | 13 | ** a written agreement between you and The Qt Company. For licensing terms |
83 | 14 | ** conditions see http://qt.digia.com/licensing. For further information | 14 | ** and conditions see http://www.qt.io/terms-conditions. For further |
84 | 15 | ** use the contact form at http://qt.digia.com/contact-us. | 15 | ** information use the contact form at http://www.qt.io/contact-us. |
85 | 16 | ** | 16 | ** |
86 | 17 | ** GNU Lesser General Public License Usage | 17 | ** GNU Lesser General Public License Usage |
87 | 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
93 | 19 | ** General Public License version 2.1 as published by the Free Software | 19 | ** General Public License version 2.1 or version 3 as published by the Free |
94 | 20 | ** Foundation and appearing in the file LICENSE.LGPL included in the | 20 | ** Software Foundation and appearing in the file LICENSE.LGPLv21 and |
95 | 21 | ** packaging of this file. Please review the following information to | 21 | ** LICENSE.LGPLv3 included in the packaging of this file. Please review the |
96 | 22 | ** ensure the GNU Lesser General Public License version 2.1 requirements | 22 | ** following information to ensure the GNU Lesser General Public License |
97 | 23 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | 23 | ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and |
98 | 24 | ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | ||
99 | 24 | ** | 25 | ** |
102 | 25 | ** In addition, as a special exception, Digia gives you certain additional | 26 | ** As a special exception, The Qt Company gives you certain additional |
103 | 26 | ** rights. These rights are described in the Digia Qt LGPL Exception | 27 | ** rights. These rights are described in The Qt Company LGPL Exception |
104 | 27 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | 28 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
105 | 28 | ** | 29 | ** |
106 | 29 | ** GNU General Public License Usage | ||
107 | 30 | ** Alternatively, this file may be used under the terms of the GNU | ||
108 | 31 | ** General Public License version 3.0 as published by the Free Software | ||
109 | 32 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
110 | 33 | ** packaging of this file. Please review the following information to | ||
111 | 34 | ** ensure the GNU General Public License version 3.0 requirements will be | ||
112 | 35 | ** met: http://www.gnu.org/copyleft/gpl.html. | ||
113 | 36 | ** | ||
114 | 37 | ** | ||
115 | 38 | ** $QT_END_LICENSE$ | 30 | ** $QT_END_LICENSE$ |
116 | 39 | ** | 31 | ** |
117 | 40 | ****************************************************************************/ | 32 | ****************************************************************************/ |
118 | 41 | 33 | ||
120 | 42 | #include "private/qsgvideonode_p.h" | 34 | #include "qsgvideonode_p.h" |
121 | 43 | 35 | ||
122 | 44 | QT_BEGIN_NAMESPACE | 36 | QT_BEGIN_NAMESPACE |
123 | 45 | 37 | ||
124 | 46 | 38 | ||
125 | === renamed file 'src/private/qsgvideonode_p.h' => 'src/qsgvideonode_p.h' | |||
126 | --- src/private/qsgvideonode_p.h 2014-06-06 14:54:20 +0000 | |||
127 | +++ src/qsgvideonode_p.h 2015-10-08 07:11:57 +0000 | |||
128 | @@ -1,40 +1,32 @@ | |||
129 | 1 | /**************************************************************************** | 1 | /**************************************************************************** |
130 | 2 | ** | 2 | ** |
133 | 3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). | 3 | ** Copyright (C) 2015 The Qt Company Ltd. |
134 | 4 | ** Contact: http://www.qt-project.org/legal | 4 | ** Contact: http://www.qt.io/licensing/ |
135 | 5 | ** | 5 | ** |
136 | 6 | ** This file is part of the Qt Toolkit. | 6 | ** This file is part of the Qt Toolkit. |
137 | 7 | ** | 7 | ** |
139 | 8 | ** $QT_BEGIN_LICENSE:LGPL$ | 8 | ** $QT_BEGIN_LICENSE:LGPL21$ |
140 | 9 | ** Commercial License Usage | 9 | ** Commercial License Usage |
141 | 10 | ** Licensees holding valid commercial Qt licenses may use this file in | 10 | ** Licensees holding valid commercial Qt licenses may use this file in |
142 | 11 | ** accordance with the commercial license agreement provided with the | 11 | ** accordance with the commercial license agreement provided with the |
143 | 12 | ** Software or, alternatively, in accordance with the terms contained in | 12 | ** Software or, alternatively, in accordance with the terms contained in |
147 | 13 | ** a written agreement between you and Digia. For licensing terms and | 13 | ** a written agreement between you and The Qt Company. For licensing terms |
148 | 14 | ** conditions see http://qt.digia.com/licensing. For further information | 14 | ** and conditions see http://www.qt.io/terms-conditions. For further |
149 | 15 | ** use the contact form at http://qt.digia.com/contact-us. | 15 | ** information use the contact form at http://www.qt.io/contact-us. |
150 | 16 | ** | 16 | ** |
151 | 17 | ** GNU Lesser General Public License Usage | 17 | ** GNU Lesser General Public License Usage |
152 | 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
158 | 19 | ** General Public License version 2.1 as published by the Free Software | 19 | ** General Public License version 2.1 or version 3 as published by the Free |
159 | 20 | ** Foundation and appearing in the file LICENSE.LGPL included in the | 20 | ** Software Foundation and appearing in the file LICENSE.LGPLv21 and |
160 | 21 | ** packaging of this file. Please review the following information to | 21 | ** LICENSE.LGPLv3 included in the packaging of this file. Please review the |
161 | 22 | ** ensure the GNU Lesser General Public License version 2.1 requirements | 22 | ** following information to ensure the GNU Lesser General Public License |
162 | 23 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | 23 | ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and |
163 | 24 | ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | ||
164 | 24 | ** | 25 | ** |
167 | 25 | ** In addition, as a special exception, Digia gives you certain additional | 26 | ** As a special exception, The Qt Company gives you certain additional |
168 | 26 | ** rights. These rights are described in the Digia Qt LGPL Exception | 27 | ** rights. These rights are described in The Qt Company LGPL Exception |
169 | 27 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | 28 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
170 | 28 | ** | 29 | ** |
171 | 29 | ** GNU General Public License Usage | ||
172 | 30 | ** Alternatively, this file may be used under the terms of the GNU | ||
173 | 31 | ** General Public License version 3.0 as published by the Free Software | ||
174 | 32 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
175 | 33 | ** packaging of this file. Please review the following information to | ||
176 | 34 | ** ensure the GNU General Public License version 3.0 requirements will be | ||
177 | 35 | ** met: http://www.gnu.org/copyleft/gpl.html. | ||
178 | 36 | ** | ||
179 | 37 | ** | ||
180 | 38 | ** $QT_END_LICENSE$ | 30 | ** $QT_END_LICENSE$ |
181 | 39 | ** | 31 | ** |
182 | 40 | ****************************************************************************/ | 32 | ****************************************************************************/ |
183 | @@ -51,15 +43,19 @@ | |||
184 | 51 | 43 | ||
185 | 52 | QT_BEGIN_NAMESPACE | 44 | QT_BEGIN_NAMESPACE |
186 | 53 | 45 | ||
187 | 54 | const QLatin1String QSGVideoNodeFactoryPluginKey("sgvideonodes"); | ||
188 | 55 | |||
189 | 56 | class Q_MULTIMEDIAQUICK_EXPORT QSGVideoNode : public QSGGeometryNode | 46 | class Q_MULTIMEDIAQUICK_EXPORT QSGVideoNode : public QSGGeometryNode |
190 | 57 | { | 47 | { |
191 | 58 | public: | 48 | public: |
192 | 49 | enum FrameFlag { | ||
193 | 50 | FrameFiltered = 0x01 | ||
194 | 51 | }; | ||
195 | 52 | Q_DECLARE_FLAGS(FrameFlags, FrameFlag) | ||
196 | 53 | |||
197 | 59 | QSGVideoNode(); | 54 | QSGVideoNode(); |
198 | 60 | 55 | ||
200 | 61 | virtual void setCurrentFrame(const QVideoFrame &frame) = 0; | 56 | virtual void setCurrentFrame(const QVideoFrame &frame, FrameFlags flags) = 0; |
201 | 62 | virtual QVideoFrame::PixelFormat pixelFormat() const = 0; | 57 | virtual QVideoFrame::PixelFormat pixelFormat() const = 0; |
202 | 58 | virtual QAbstractVideoBuffer::HandleType handleType() const = 0; | ||
203 | 63 | 59 | ||
204 | 64 | void setTexturedRectGeometry(const QRectF &boundingRect, const QRectF &textureRect, int orientation); | 60 | void setTexturedRectGeometry(const QRectF &boundingRect, const QRectF &textureRect, int orientation); |
205 | 65 | 61 | ||
206 | @@ -69,6 +65,8 @@ | |||
207 | 69 | int m_orientation; | 65 | int m_orientation; |
208 | 70 | }; | 66 | }; |
209 | 71 | 67 | ||
210 | 68 | Q_DECLARE_OPERATORS_FOR_FLAGS(QSGVideoNode::FrameFlags) | ||
211 | 69 | |||
212 | 72 | class Q_MULTIMEDIAQUICK_EXPORT QSGVideoNodeFactoryInterface | 70 | class Q_MULTIMEDIAQUICK_EXPORT QSGVideoNodeFactoryInterface |
213 | 73 | { | 71 | { |
214 | 74 | public: | 72 | public: |
215 | 75 | 73 | ||
216 | === modified file 'src/shadervideonode.cpp' | |||
217 | --- src/shadervideonode.cpp 2015-06-18 16:20:53 +0000 | |||
218 | +++ src/shadervideonode.cpp 2015-10-08 07:11:57 +0000 | |||
219 | @@ -69,7 +69,7 @@ | |||
220 | 69 | * back. | 69 | * back. |
221 | 70 | * \param frame | 70 | * \param frame |
222 | 71 | */ | 71 | */ |
224 | 72 | void ShaderVideoNode::setCurrentFrame(const QVideoFrame &frame) | 72 | void ShaderVideoNode::setCurrentFrame(const QVideoFrame &frame, FrameFlags flags) |
225 | 73 | { | 73 | { |
226 | 74 | void *ci = 0; | 74 | void *ci = 0; |
227 | 75 | if (frame.availableMetaData().contains("CamControl")) { | 75 | if (frame.availableMetaData().contains("CamControl")) { |
228 | @@ -106,6 +106,15 @@ | |||
229 | 106 | } | 106 | } |
230 | 107 | 107 | ||
231 | 108 | /*! | 108 | /*! |
232 | 109 | * \brief ShaderVideoNode::HandleType \reimp | ||
233 | 110 | * \return | ||
234 | 111 | */ | ||
235 | 112 | QAbstractVideoBuffer::HandleType ShaderVideoNode::handleType() const | ||
236 | 113 | { | ||
237 | 114 | return QAbstractVideoBuffer::GLTextureHandle; | ||
238 | 115 | } | ||
239 | 116 | |||
240 | 117 | /*! | ||
241 | 109 | * \brief ShaderVideoNode::onSetSnapshotSize sets the target size for the snapshot | 118 | * \brief ShaderVideoNode::onSetSnapshotSize sets the target size for the snapshot |
242 | 110 | * \param size | 119 | * \param size |
243 | 111 | */ | 120 | */ |
244 | 112 | 121 | ||
245 | === modified file 'src/shadervideonode.h' | |||
246 | --- src/shadervideonode.h 2015-04-30 19:42:40 +0000 | |||
247 | +++ src/shadervideonode.h 2015-10-08 07:11:57 +0000 | |||
248 | @@ -19,7 +19,7 @@ | |||
249 | 19 | 19 | ||
250 | 20 | #include <qgl.h> | 20 | #include <qgl.h> |
251 | 21 | #include <QObject> | 21 | #include <QObject> |
253 | 22 | #include <private/qsgvideonode_p.h> | 22 | #include <qsgvideonode_p.h> |
254 | 23 | 23 | ||
255 | 24 | #include <memory> | 24 | #include <memory> |
256 | 25 | 25 | ||
257 | @@ -43,7 +43,8 @@ | |||
258 | 43 | void preprocess(); | 43 | void preprocess(); |
259 | 44 | 44 | ||
260 | 45 | QVideoFrame::PixelFormat pixelFormat() const; | 45 | QVideoFrame::PixelFormat pixelFormat() const; |
262 | 46 | void setCurrentFrame(const QVideoFrame &frame); | 46 | void setCurrentFrame(const QVideoFrame &frame, FrameFlags flags); |
263 | 47 | QAbstractVideoBuffer::HandleType handleType() const; | ||
264 | 47 | 48 | ||
265 | 48 | private Q_SLOTS: | 49 | private Q_SLOTS: |
266 | 49 | void onSetSnapshotSize(const QSize &size); | 50 | void onSetSnapshotSize(const QSize &size); |
267 | 50 | 51 | ||
268 | === modified file 'src/shadervideonodeplugin.h' | |||
269 | --- src/shadervideonodeplugin.h 2014-06-06 14:54:20 +0000 | |||
270 | +++ src/shadervideonodeplugin.h 2015-10-08 07:11:57 +0000 | |||
271 | @@ -17,7 +17,7 @@ | |||
272 | 17 | #ifndef SHADERVIDEONODEPLUGIN_H | 17 | #ifndef SHADERVIDEONODEPLUGIN_H |
273 | 18 | #define SHADERVIDEONODEPLUGIN_H | 18 | #define SHADERVIDEONODEPLUGIN_H |
274 | 19 | 19 | ||
276 | 20 | #include <private/qsgvideonode_p.h> | 20 | #include <qsgvideonode_p.h> |
277 | 21 | #include <QVideoSurfaceFormat> | 21 | #include <QVideoSurfaceFormat> |
278 | 22 | 22 | ||
279 | 23 | class ShaderVideoNodePlugin : public QObject, public QSGVideoNodeFactoryInterface | 23 | class ShaderVideoNodePlugin : public QObject, public QSGVideoNodeFactoryInterface |
280 | 24 | 24 | ||
281 | === modified file 'unittests/shadervideonode/tst_shadervideonode.cpp' | |||
282 | --- unittests/shadervideonode/tst_shadervideonode.cpp 2015-01-12 16:52:18 +0000 | |||
283 | +++ unittests/shadervideonode/tst_shadervideonode.cpp 2015-10-08 07:11:57 +0000 | |||
284 | @@ -117,12 +117,12 @@ | |||
285 | 117 | CameraControl *cc = new CameraControl; | 117 | CameraControl *cc = new CameraControl; |
286 | 118 | QVideoFrame frame(new GLTextureBuffer(1), QSize(320, 240), QVideoFrame::Format_RGB32); | 118 | QVideoFrame frame(new GLTextureBuffer(1), QSize(320, 240), QVideoFrame::Format_RGB32); |
287 | 119 | 119 | ||
289 | 120 | node.setCurrentFrame(frame); | 120 | node.setCurrentFrame(frame, 0); |
290 | 121 | QCOMPARE(QVariant(QMetaType::VoidStar, node.m_material->cameraControl()), | 121 | QCOMPARE(QVariant(QMetaType::VoidStar, node.m_material->cameraControl()), |
291 | 122 | QVariant(QMetaType::VoidStar, 0)); | 122 | QVariant(QMetaType::VoidStar, 0)); |
292 | 123 | 123 | ||
293 | 124 | frame.setMetaData("CamControl", QVariant::fromValue(static_cast<void*>(cc))); | 124 | frame.setMetaData("CamControl", QVariant::fromValue(static_cast<void*>(cc))); |
295 | 125 | node.setCurrentFrame(frame); | 125 | node.setCurrentFrame(frame, 0); |
296 | 126 | QCOMPARE(QVariant(QMetaType::VoidStar, node.m_material->cameraControl()), | 126 | QCOMPARE(QVariant(QMetaType::VoidStar, node.m_material->cameraControl()), |
297 | 127 | QVariant(QMetaType::VoidStar, cc)); | 127 | QVariant(QMetaType::VoidStar, cc)); |
298 | 128 | } | 128 | } |
299 | @@ -136,12 +136,12 @@ | |||
300 | 136 | 136 | ||
301 | 137 | QVideoFrame frame(new GLTextureBuffer(1), QSize(1920, 80), QVideoFrame::Format_RGB32); | 137 | QVideoFrame frame(new GLTextureBuffer(1), QSize(1920, 80), QVideoFrame::Format_RGB32); |
302 | 138 | 138 | ||
304 | 139 | node.setCurrentFrame(frame); | 139 | node.setCurrentFrame(frame, 0); |
305 | 140 | 140 | ||
306 | 141 | std::shared_ptr<core::ubuntu::media::video::Sink> sink{new NullSink()}; | 141 | std::shared_ptr<core::ubuntu::media::video::Sink> sink{new NullSink()}; |
307 | 142 | 142 | ||
308 | 143 | frame.setMetaData("GLVideoSink", QVariant::fromValue(sink)); | 143 | frame.setMetaData("GLVideoSink", QVariant::fromValue(sink)); |
310 | 144 | node.setCurrentFrame(frame); | 144 | node.setCurrentFrame(frame, 0); |
311 | 145 | QCOMPARE(node.m_material->glVideoSink(), sink); | 145 | QCOMPARE(node.m_material->glVideoSink(), sink); |
312 | 146 | 146 | ||
313 | 147 | QVERIFY(m_glConsumerSet == true); | 147 | QVERIFY(m_glConsumerSet == true); |
FAILED: Continuous integration, rev:66 jenkins. qa.ubuntu. com/job/ qtvideo- node-ci/ 68/ jenkins. qa.ubuntu. com/job/ qtvideo- node-vivid- amd64-ci/ 10/console jenkins. qa.ubuntu. com/job/ qtvideo- node-vivid- armhf-ci/ 10/console jenkins. qa.ubuntu. com/job/ qtvideo- node-vivid- i386-ci/ 10/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/qtvideo- node-ci/ 68/rebuild
http://