summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/multimedia/qmediaformat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/multimedia/qmediaformat.h b/src/multimedia/qmediaformat.h
index 0a653a03a..68dc16103 100644
--- a/src/multimedia/qmediaformat.h
+++ b/src/multimedia/qmediaformat.h
@@ -130,7 +130,12 @@ public:
QMediaFormat(QMediaFormat &&other) noexcept = default;
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QMediaFormat)
void swap(QMediaFormat &other) noexcept
- { qSwap(d, other.d); }
+ {
+ qSwap(fmt, other.fmt);
+ qSwap(audio, other.audio);
+ qSwap(video, other.video);
+ qSwap(d, other.d);
+ }
FileFormat fileFormat() const { return fmt; }
void setFileFormat(FileFormat f) { fmt = f; }