X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frenderer.h;h=9c92f9d691dd5345d1b71fbfcb8c37d6c0b4bd92;hb=40d2600fa0617abc2b07b95687d9723c61f74f5c;hp=201e353bb6550663da81b07ece4580f9853266d4;hpb=525c7c608d9f74d569ecbe88f8565eee5d3bfec4;p=kdenlive diff --git a/src/renderer.h b/src/renderer.h index 201e353b..9c92f9d6 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. */ @@ -199,6 +202,10 @@ Q_OBJECT public: double dar() const; /** @brief Returns sample aspect ratio. */ double sar() const; + /** @brief If monitor is active, refresh it. */ + void refreshIfActive(); + /** @brief Start the MLT monitor consumer. */ + void startConsumer(); /* * Playlist manipulation. @@ -363,6 +370,7 @@ private: QLocale m_locale; QFuture m_infoThread; QList m_requestList; + bool m_paused; void closeMlt(); void mltCheckLength(Mlt::Tractor *tractor); @@ -396,6 +404,8 @@ private slots: /** @brief A clip with multiple video streams was found, ask what to do. */ void slotMultiStreamProducerFound(const QString path, QList audio_list, QList video_list, stringMap data); + void slotCheckSeeking(); + signals: /** @brief The renderer received a reply to a getFileProperties request. */ @@ -439,6 +449,7 @@ signals: void showImageSignal(QImage); void showAudioSignal(const QByteArray &); void addClip(const KUrl &, stringMap); + void checkSeeking(); public slots: