summaryrefslogtreecommitdiffstats
path: root/src/gsttools/qgstreamerbushelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsttools/qgstreamerbushelper.cpp')
-rw-r--r--src/gsttools/qgstreamerbushelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsttools/qgstreamerbushelper.cpp b/src/gsttools/qgstreamerbushelper.cpp
index 7db62b83c..243a21611 100644
--- a/src/gsttools/qgstreamerbushelper.cpp
+++ b/src/gsttools/qgstreamerbushelper.cpp
@@ -117,7 +117,7 @@ private:
private slots:
void doProcessMessage(const QGstreamerMessage& msg)
{
- foreach (QGstreamerBusMessageFilter *filter, busFilters) {
+ for (QGstreamerBusMessageFilter *filter : qAsConst(busFilters)) {
if (filter->processBusMessage(msg))
break;
}
@@ -136,7 +136,7 @@ static GstBusSyncReply syncGstBusFilter(GstBus* bus, GstMessage* message, QGstre
Q_UNUSED(bus);
QMutexLocker lock(&d->filterMutex);
- foreach (QGstreamerSyncMessageFilter *filter, d->syncFilters) {
+ for (QGstreamerSyncMessageFilter *filter : qAsConst(d->syncFilters)) {
if (filter->processSyncMessage(QGstreamerMessage(message)))
return GST_BUS_DROP;
}