summaryrefslogtreecommitdiff
path: root/src/plugins/multimedia/gstreamer
diff options
context:
space:
mode:
authorZhang Hao <zhanghao@uniontech.com>2022-01-27 09:21:22 +0800
committerZhang Hao <zhanghao@uniontech.com>2022-01-27 16:03:50 +0800
commit7d48e22ca4263a5e103bc5089443eb20ef1ec8cb (patch)
treeef77e222051e75816eed3a2be2998a214d5d7386 /src/plugins/multimedia/gstreamer
parent1b360b286c82a58f387e9a2ee720fb1939448481 (diff)
downloadqtmultimedia-7d48e22ca4263a5e103bc5089443eb20ef1ec8cb.tar.gz
Logic tidies
Remove duplicate judgment conditions Change-Id: Id5f8e2096dfd27bbb378d1c8a6437414b97e2570 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/plugins/multimedia/gstreamer')
-rw-r--r--src/plugins/multimedia/gstreamer/qgstreamerformatinfo.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/multimedia/gstreamer/qgstreamerformatinfo.cpp b/src/plugins/multimedia/gstreamer/qgstreamerformatinfo.cpp
index 09d9ee17a..8c17ed7e7 100644
--- a/src/plugins/multimedia/gstreamer/qgstreamerformatinfo.cpp
+++ b/src/plugins/multimedia/gstreamer/qgstreamerformatinfo.cpp
@@ -165,8 +165,6 @@ QImageCapture::FileFormat QGstreamerFormatInfo::imageFormatForCaps(QGstStructure
return QImageCapture::PNG;
} else if (!strcmp(name, "image/webp")) {
return QImageCapture::WebP;
- } else if (!strcmp(name, "image/webp")) {
- return QImageCapture::WebP;
} else if (!strcmp(name, "image/tiff")) {
return QImageCapture::Tiff;
}