diff options
-rw-r--r-- | src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp b/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp index 7132c29ab..91bfd67f3 100644 --- a/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp +++ b/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp @@ -252,7 +252,7 @@ void QGstreamerRecorderControl::applySettings() bool found = false; foreach (const QString &audioCandidate, audioCandidates) { QSet<QString> audioTypes = audioEncodeControl->supportedStreamTypes(audioCandidate); - if (!audioTypes.intersect(supportedTypes).isEmpty()) { + if (audioTypes.intersects(supportedTypes)) { found = true; audioCodec = audioCandidate; break; @@ -266,7 +266,7 @@ void QGstreamerRecorderControl::applySettings() bool found = false; foreach (const QString &videoCandidate, videoCandidates) { QSet<QString> videoTypes = videoEncodeControl->supportedStreamTypes(videoCandidate); - if (!videoTypes.intersect(supportedTypes).isEmpty()) { + if (videoTypes.intersects(supportedTypes)) { found = true; videoCodec = videoCandidate; break; |