summaryrefslogtreecommitdiffstats
path: root/src/gsttools/qgstreamervideorenderer.cpp
diff options
context:
space:
mode:
authorLev Zelenskiy <lev.zelenskiy@nokia.com>2012-05-03 11:34:33 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-03 04:10:33 +0200
commitc45a5a0b420ceb09262a8695c63008b1ce27490a (patch)
tree60652a4cd8256b00ddf5b8bdfa2c106380368f2c /src/gsttools/qgstreamervideorenderer.cpp
parentf62213fee863989fe0b0e247388c3bac15dca409 (diff)
Implement QGstreamerVideoRenderer::stopRenderer()
Surface has to be stopped when QGstreamerVideoRendererInterface::stopRenderer() is called. This fixes a media player issue when video output is not cleared when media is set to 0. Change-Id: Ifdc851797519dcdf95db86e8dcec93b3866c388e Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Diffstat (limited to 'src/gsttools/qgstreamervideorenderer.cpp')
-rw-r--r--src/gsttools/qgstreamervideorenderer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gsttools/qgstreamervideorenderer.cpp b/src/gsttools/qgstreamervideorenderer.cpp
index bd2a0b12..c0dbe093 100644
--- a/src/gsttools/qgstreamervideorenderer.cpp
+++ b/src/gsttools/qgstreamervideorenderer.cpp
@@ -69,6 +69,11 @@ GstElement *QGstreamerVideoRenderer::videoSink()
return reinterpret_cast<GstElement*>(m_videoSink);
}
+void QGstreamerVideoRenderer::stopRenderer()
+{
+ if (m_surface)
+ m_surface->stop();
+}
QAbstractVideoSurface *QGstreamerVideoRenderer::surface() const
{