summaryrefslogtreecommitdiffstats
path: root/src/gsttools/qgstreamerbushelper.cpp
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2012-04-04 14:47:57 +1000
committerQt by Nokia <qt-info@nokia.com>2012-04-05 02:40:20 +0200
commite908790a6a8b6cc779e5ec24ec94f6caf00d354e (patch)
tree8f19d550bbc58c0b6a539c02ca17cec23c2009c3 /src/gsttools/qgstreamerbushelper.cpp
parentcc33b63fa53bac51aa38f126fe23b89e53e51fc2 (diff)
Ensure GstBus is available during GstBusHelper lifetime.
Change-Id: I6fc867e3c7a6ad1f83938d3dc0500ea339c39fe2 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Diffstat (limited to 'src/gsttools/qgstreamerbushelper.cpp')
-rw-r--r--src/gsttools/qgstreamerbushelper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gsttools/qgstreamerbushelper.cpp b/src/gsttools/qgstreamerbushelper.cpp
index 751e805ba..3a7c46833 100644
--- a/src/gsttools/qgstreamerbushelper.cpp
+++ b/src/gsttools/qgstreamerbushelper.cpp
@@ -161,11 +161,13 @@ QGstreamerBusHelper::QGstreamerBusHelper(GstBus* bus, QObject* parent):
{
d = new QGstreamerBusHelperPrivate(this, bus);
gst_bus_set_sync_handler(bus, (GstBusSyncHandler)syncGstBusFilter, d);
+ gst_object_ref(GST_OBJECT(bus));
}
QGstreamerBusHelper::~QGstreamerBusHelper()
{
gst_bus_set_sync_handler(d->bus(),0,0);
+ gst_object_unref(GST_OBJECT(d->bus()));
}
void QGstreamerBusHelper::installMessageFilter(QObject *filter)