Skip to content
Snippets Groups Projects
Unverified Commit b4fca6e5 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

directrenderer: update video surface on update

Else, changing the resolution is not taken into account correctly.
This is a follow-up of daemon sink's refactoring

Change-Id: If70d6f0ed40fa9c0a343b8cbbacf7461f3288d01
parent c5bca293
No related branches found
No related tags found
No related merge requests found
...@@ -115,9 +115,11 @@ DirectRenderer::stopRendering() ...@@ -115,9 +115,11 @@ DirectRenderer::stopRendering()
void void
DirectRenderer::update(const QSize& res, const QString&) DirectRenderer::update(const QSize& res, const QString&)
{ {
stopRendering();
Renderer::update(res); Renderer::update(res);
VideoManager::instance().registerSinkTarget(id(), pimpl_->target); VideoManager::instance().registerSinkTarget(id(), pimpl_->target);
startRendering();
} }
Frame Frame
......
...@@ -245,6 +245,7 @@ ShmRenderer::~ShmRenderer() ...@@ -245,6 +245,7 @@ ShmRenderer::~ShmRenderer()
void void
ShmRenderer::update(const QSize& res, const QString& shmPath) ShmRenderer::update(const QSize& res, const QString& shmPath)
{ {
Q_EMIT stopped();
Renderer::update(res); Renderer::update(res);
if (!pimpl_->thread.isRunning()) if (!pimpl_->thread.isRunning())
...@@ -252,6 +253,7 @@ ShmRenderer::update(const QSize& res, const QString& shmPath) ...@@ -252,6 +253,7 @@ ShmRenderer::update(const QSize& res, const QString& shmPath)
pimpl_->path = shmPath; pimpl_->path = shmPath;
VideoManager::instance().startShmSink(id(), true); VideoManager::instance().startShmSink(id(), true);
Q_EMIT started();
} }
Frame Frame
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment