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, 3 insertions, 1 deletions
diff --git a/src/gsttools/qgstreamerbushelper.cpp b/src/gsttools/qgstreamerbushelper.cpp
index bd35d4b0a..bad1d210a 100644
--- a/src/gsttools/qgstreamerbushelper.cpp
+++ b/src/gsttools/qgstreamerbushelper.cpp
@@ -143,8 +143,10 @@ static GstBusSyncReply syncGstBusFilter(GstBus* bus, GstMessage* message, QGstre
QMutexLocker lock(&d->filterMutex);
for (QGstreamerSyncMessageFilter *filter : qAsConst(d->syncFilters)) {
- if (filter->processSyncMessage(QGstreamerMessage(message)))
+ if (filter->processSyncMessage(QGstreamerMessage(message))) {
+ gst_message_unref(message);
return GST_BUS_DROP;
+ }
}
return GST_BUS_PASS;