summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-03-03 04:24:22 (GMT)
committerDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-03-03 04:24:22 (GMT)
commit61e29b6b4b1f96fecad1ad105cd190beed6621e6 (patch)
treee38e6fe179e434ac364fca3847f0e6eea12de23f /src/plugins
parent0994b819f6cbf550c067146324f24489d0b4fa1d (diff)
downloadQt-61e29b6b4b1f96fecad1ad105cd190beed6621e6.zip
Qt-61e29b6b4b1f96fecad1ad105cd190beed6621e6.tar.gz
Qt-61e29b6b4b1f96fecad1ad105cd190beed6621e6.tar.bz2
Gstreamer media backend: ensure the null video output is not deleted
during player session lifetime Reviewed-by: Andrew den Exter
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp
index be2273b..392a7a8 100644
--- a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp
+++ b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp
@@ -91,6 +91,7 @@ QGstreamerPlayerSession::QGstreamerPlayerSession(QObject *parent)
m_busHelper->installSyncEventFilter(this);
m_nullVideoOutput = gst_element_factory_make("fakesink", NULL);
+ gst_object_ref(GST_OBJECT(m_nullVideoOutput));
g_object_set(G_OBJECT(m_playbin), "video-sink", m_nullVideoOutput, NULL);
// Initial volume
@@ -108,6 +109,7 @@ QGstreamerPlayerSession::~QGstreamerPlayerSession()
delete m_busHelper;
gst_object_unref(GST_OBJECT(m_bus));
gst_object_unref(GST_OBJECT(m_playbin));
+ gst_object_unref(GST_OBJECT(m_nullVideoOutput));
}
}