Use QSet::intersects() instead of QSet::intersect()
It's much faster. Change-Id: Iee42359147ebb76b5848f3ac2e17eb92214c8ab6 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
committed by
Sérgio Martins
parent
66613b4f9c
commit
387c063ed6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user