X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frenderer.h;h=835b3c204c5d3f480c4a696541804e1dbc7529f2;hb=bddf7dbd05d7a0c980934baa9caa71b991b92b2a;hp=9813d6270c9e9892d24e7f6d072ddba3bbe6c204;hpb=3b176bab2ad91159c0a4a7dbe5f278f646115218;p=kdenlive diff --git a/src/renderer.h b/src/renderer.h index 9813d627..835b3c20 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -159,6 +159,9 @@ Q_OBJECT public: /** @brief Save a clip in timeline to an xml playlist. */ bool saveClip(int track, GenTime position, KUrl url, QString desc = QString()); + /** @brief Return true if we are currently playing */ + bool isPlaying() const; + /** @brief Returns the speed at which the renderer is currently playing. * * It returns 0.0 when the renderer is not playing anything. */ @@ -170,7 +173,7 @@ Q_OBJECT public: void emitFrameUpdated(Mlt::Frame&); void emitFrameNumber(); - void emitConsumerStopped(); + void emitConsumerStopped(bool forcePause = false); /** @brief Returns the aspect ratio of the consumer. */ double consumerRatio() const; @@ -320,8 +323,8 @@ Q_OBJECT public: void unlockService(Mlt::Tractor *tractor); const QString activeClipId(); /** @brief Fill a combobox with the found blackmagic devices */ - static bool getBlackMagicDeviceList(KComboBox *devicelist); - static bool getBlackMagicOutputDeviceList(KComboBox *devicelist); + static bool getBlackMagicDeviceList(KComboBox *devicelist, bool force = false); + static bool getBlackMagicOutputDeviceList(KComboBox *devicelist, bool force = false); /** @brief Frame rendering is handeled by Kdenlive, don't show video through SDL display */ void disablePreview(bool disable); int requestedSeekPosition; @@ -348,7 +351,6 @@ private: bool m_isZoneMode; bool m_isLoopMode; GenTime m_loopStart; - int m_originalOut; /** @brief True when the monitor is in split view. */ bool m_isSplitView; @@ -367,6 +369,7 @@ private: QLocale m_locale; QFuture m_infoThread; QList m_requestList; + bool m_paused; void closeMlt(); void mltCheckLength(Mlt::Tractor *tractor);