]> git.sesse.net Git - kdenlive/blobdiff - src/recmonitor.h
Small ui cleanup + possible crash fix in renderwidget
[kdenlive] / src / recmonitor.h
index 5cfa920e8b2ec10f7ce6e5123bc14ac5234f67d1..d9bd734cb73f0fa3a3febb9c0087dc0d10855faf 100644 (file)
@@ -27,7 +27,6 @@
 #define RECMONITOR_H
 
 #include "abstractmonitor.h"
-#include "blackmagic/capture.h"
 #include "ui_recmonitor_ui.h"
 
 #include <QToolBar>
@@ -101,10 +100,6 @@ private:
     QAction *m_stopAction;
     QAction *m_discAction;
 
-
-    CaptureHandler *m_bmCapture;
-    /** @brief Indicates whether we are currently capturing from BLACKMAGIC. */
-    bool m_blackmagicCapturing;
     MonitorManager *m_manager;
     MltDeviceCapture *m_captureDevice;
     VideoPreviewContainer *m_videoBox;
@@ -112,9 +107,11 @@ private:
     void checkDeviceAvailability();
     QPixmap mergeSideBySide(const QPixmap& pix, const QString txt);
     void manageCapturedFiles();
+    /** @brief Build MLT producer for device, using path as profile. */
+    void buildMltDevice(const QString &path);
 
 private slots:
-    void slotStartCapture(bool play = true);
+    void slotStartPreview(bool play = true);
     void slotRecord();
     void slotProcessStatus(QProcess::ProcessState status);
     void slotVideoDeviceChanged(int ix);
@@ -125,9 +122,10 @@ private slots:
     void slotConfigure();
     void slotReadDvgrabInfo();
     void slotUpdateFreeSpace();
-    void slotGotBlackmagicFrameNumber(ulong ix);
     void slotSetInfoMessage(const QString &message);
     void slotDroppedFrames(int dropped);
+    /** @brief Change setting for preview while recording. */
+    void slotChangeRecordingPreview(int ix);
 
 public slots:
     void refreshRecMonitor(bool visible);