diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-04-20 11:36:46 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-04-27 06:11:46 +0000 |
commit | 934cdc9da185d5b7e85f898259ede4dcac9dcc21 (patch) | |
tree | 0feccb06492304284f976c96711549d294755c53 /src/multimedia/qmediaformat.cpp | |
parent | d69631a206982c35c856103f27f5a9e4ed449883 (diff) |
Fix tst_qmediaencoder
Fix and re-enable all tests for QMediaEncoderSettings
while at it.
Change-Id: Ie15cd59a849412e02c6d38c91bf1bea16456cdd5
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'src/multimedia/qmediaformat.cpp')
-rw-r--r-- | src/multimedia/qmediaformat.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/multimedia/qmediaformat.cpp b/src/multimedia/qmediaformat.cpp index 3c2841bfa..77cb4bbbe 100644 --- a/src/multimedia/qmediaformat.cpp +++ b/src/multimedia/qmediaformat.cpp @@ -335,4 +335,13 @@ QString QMediaFormat::videoCodecDescription(QMediaFormat::VideoCodec c) return QString::fromUtf8(descriptions[int(c) + 1]); } +bool QMediaFormat::operator==(const QMediaFormat &other) const +{ + Q_ASSERT(!d); + return fmtMode == other.fmtMode && + fmt == other.fmt && + audio == other.audio && + video == other.video; +} + QT_END_NAMESPACE |