[vlmc-devel] [PATCH 3/3] GenericRenderer: Don't inherit EffectUser
Yikai Lu
luyikei.qmltu at gmail.com
Thu Apr 14 10:26:59 CEST 2016
---
src/Renderer/GenericRenderer.h | 9 ++-------
src/Renderer/WorkflowRenderer.h | 4 ++++
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/Renderer/GenericRenderer.h b/src/Renderer/GenericRenderer.h
index 4a30d01..2b46831 100644
--- a/src/Renderer/GenericRenderer.h
+++ b/src/Renderer/GenericRenderer.h
@@ -27,7 +27,6 @@
#include <QObject>
-#include "EffectsEngine/EffectUser.h"
#include "Workflow/Types.h"
#include "Tools/RendererEventWatcher.h"
@@ -37,7 +36,7 @@ class Media;
/**
* \class Common base for every renderer.
*/
-class GenericRenderer : public EffectUser
+class GenericRenderer : public QObject
{
Q_OBJECT
Q_DISABLE_COPY( GenericRenderer )
@@ -142,13 +141,8 @@ public:
return m_isRendering;
}
- EffectUser::Type effectType() const
- {
- return EffectUser::GlobalEffectUser;
- }
RendererEventWatcher* eventWatcher();
-
protected:
Backend::ISourceRenderer* m_sourceRenderer;
RendererEventWatcher* m_eventWatcher;
@@ -161,6 +155,7 @@ protected:
* \sa isPaused()
*/
bool m_paused;
+ bool m_isRendering;
QWidget* m_renderWidget;
diff --git a/src/Renderer/WorkflowRenderer.h b/src/Renderer/WorkflowRenderer.h
index a44ddd1..5e846b6 100644
--- a/src/Renderer/WorkflowRenderer.h
+++ b/src/Renderer/WorkflowRenderer.h
@@ -230,6 +230,10 @@ class WorkflowRenderer : public GenericRenderer
qint64 m_audioPts;
private:
+
+ quint32 m_width;
+ quint32 m_height;
+
/**
* \brief When there's no sound to play, this is the buffer that'll
* be injected
--
1.9.1
More information about the Vlmc-devel
mailing list