]> git.sesse.net Git - kdenlive/blobdiff - src/scopes/scopemanager.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / scopes / scopemanager.h
index 3ad8320cbb32bc9ea24174a2e46465f10039f589..31f7584eb2098b2c518cbf5b98586e83a1c7ceb6 100644 (file)
@@ -36,14 +36,22 @@ class ScopeManager : QObject
         AbstractGfxScopeWidget *scope;
         QDockWidget *scopeDockWidget;
         bool singleFrameRequested;
-        GfxScopeData() { singleFrameRequested = false; }
+        GfxScopeData() {
+            scope = NULL;
+            scopeDockWidget = NULL;
+            singleFrameRequested = false;
+        }
     };
 
     struct AudioScopeData {
         AbstractAudioScopeWidget *scope;
         QDockWidget *scopeDockWidget;
         bool singleFrameRequested;
-        AudioScopeData() { singleFrameRequested = false; }
+        AudioScopeData() {
+            scope = NULL;
+            scopeDockWidget = NULL;
+            singleFrameRequested = false; 
+        }
     };
 
 public:
@@ -107,12 +115,12 @@ private slots:
       */
     
     void slotCheckActiveScopes();
-    void slotDistributeFrame(QImage image);
-    void slotDistributeAudio(QVector<int16_t> sampleData, int freq, int num_channels, int num_samples);
+    void slotDistributeFrame(const QImage &image);
+    void slotDistributeAudio(const QVector<int16_t> &sampleData, int freq, int num_channels, int num_samples);
     /**
       Allows a scope to explicitly request a new frame, even if the scope's autoRefresh is disabled.
       */
-    void slotRequestFrame(const QString widgetName);
+    void slotRequestFrame(const QString &widgetName);
 
 
 };