diff options
author | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2010-03-03 04:24:22 (GMT) |
---|---|---|
committer | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2010-03-03 04:24:22 (GMT) |
commit | 61e29b6b4b1f96fecad1ad105cd190beed6621e6 (patch) | |
tree | e38e6fe179e434ac364fca3847f0e6eea12de23f /src/plugins | |
parent | 0994b819f6cbf550c067146324f24489d0b4fa1d (diff) | |
download | Qt-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.cpp | 2 |
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)); } } |