summaryrefslogtreecommitdiffstats
path: root/src/gsttools/qgstvideobuffer.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-12-23 10:35:52 +0100
committerLars Knoll <lars.knoll@qt.io>2021-01-21 19:56:06 +0000
commitca1584428b438cb65d5b2aaaca624e9e17578ebd (patch)
tree8f28baf79c54bedf47dd5196dc9cce695edaea24 /src/gsttools/qgstvideobuffer.cpp
parent1175c3b5405015a27bc28d836e96582f02d3ce00 (diff)
Coding style cleanups
Do some coding style fixes proposed by clang-tidy. Change-Id: I62584767fd7af2f98ac02653c1105d64188f5554 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'src/gsttools/qgstvideobuffer.cpp')
-rw-r--r--src/gsttools/qgstvideobuffer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gsttools/qgstvideobuffer.cpp b/src/gsttools/qgstvideobuffer.cpp
index 699fcb348..49c8efaed 100644
--- a/src/gsttools/qgstvideobuffer.cpp
+++ b/src/gsttools/qgstvideobuffer.cpp
@@ -78,9 +78,10 @@ int QGstVideoBuffer::map(MapMode mode, int *numBytes, int bytesPerLine[4], uchar
const GstMapFlags flags = GstMapFlags(((mode & ReadOnly) ? GST_MAP_READ : 0)
| ((mode & WriteOnly) ? GST_MAP_WRITE : 0));
- if (mode == NotMapped || m_mode != NotMapped) {
+ if (mode == NotMapped || m_mode != NotMapped)
return 0;
- } else if (m_videoInfo.finfo->n_planes == 0) { // Encoded
+
+ if (m_videoInfo.finfo->n_planes == 0) { // Encoded
if (gst_buffer_map(m_buffer, &m_frame.map[0], flags)) {
if (numBytes)
*numBytes = m_frame.map[0].size;