summaryrefslogtreecommitdiffstats
path: root/src/gsttools/qgstreamervideorenderer.cpp
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2013-04-18 17:16:38 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-23 11:17:34 +0200
commit6e8db5a6714ca6883a6c02fbabdf287b3934f33c (patch)
tree3f331b8fda337ec5225a20ba83790815b7b02ddf /src/gsttools/qgstreamervideorenderer.cpp
parent7b4c7bda730abc8a3929c13d05b5c02b084139e3 (diff)
Reset VideoSurface pointer when deleted
Change-Id: Iec74c8a8b914d2c2765e0e1f319d89f3daedfe3f Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/gsttools/qgstreamervideorenderer.cpp')
-rw-r--r--src/gsttools/qgstreamervideorenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsttools/qgstreamervideorenderer.cpp b/src/gsttools/qgstreamervideorenderer.cpp
index 4bc92a18..5b0b0d7d 100644
--- a/src/gsttools/qgstreamervideorenderer.cpp
+++ b/src/gsttools/qgstreamervideorenderer.cpp
@@ -90,7 +90,7 @@ void QGstreamerVideoRenderer::setSurface(QAbstractVideoSurface *surface)
m_videoSink = 0;
if (m_surface) {
- disconnect(m_surface, SIGNAL(supportedFormatsChanged()),
+ disconnect(m_surface.data(), SIGNAL(supportedFormatsChanged()),
this, SLOT(handleFormatChange()));
}
@@ -99,7 +99,7 @@ void QGstreamerVideoRenderer::setSurface(QAbstractVideoSurface *surface)
m_surface = surface;
if (m_surface) {
- connect(m_surface, SIGNAL(supportedFormatsChanged()),
+ connect(m_surface.data(), SIGNAL(supportedFormatsChanged()),
this, SLOT(handleFormatChange()));
}