aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-10 11:42:07 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-10 11:42:07 +0200
commitf12ac3a351cac4e109cafa06e2f649d9c7b45bd8 (patch)
tree6a6d683edf8d7c3be85a08ed8c783cb4ff4bb1d4
parentcff91b1c9eae5423f31e406ac97e7f28524b4535 (diff)
cv4l-helpers.h: fix the cv4l_buffer assignment operator
This assignment operator did not actually assign anything. Fix this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/common/cv4l-helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/common/cv4l-helpers.h b/utils/common/cv4l-helpers.h
index 9de0cdf0..6295054a 100644
--- a/utils/common/cv4l-helpers.h
+++ b/utils/common/cv4l-helpers.h
@@ -832,6 +832,9 @@ public:
}
cv4l_buffer operator= (const cv4l_buffer &b)
{
+ v4l_buffer *dst = this;
+ const v4l_buffer *src = &b;
+ memcpy(dst, src, sizeof(*src));
return *this;
}
virtual ~cv4l_buffer() {}

Privacy Policy