/** @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. */
void emitFrameUpdated(Mlt::Frame&);
void emitFrameNumber();
- void emitConsumerStopped();
+ void emitConsumerStopped(bool forcePause = false);
/** @brief Returns the aspect ratio of the consumer. */
double consumerRatio() const;
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.
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;
bool m_isZoneMode;
bool m_isLoopMode;
GenTime m_loopStart;
- int m_originalOut;
/** @brief True when the monitor is in split view. */
bool m_isSplitView;
QLocale m_locale;
QFuture <void> m_infoThread;
QList <requestClipInfo> m_requestList;
+ bool m_paused;
void closeMlt();
void mltCheckLength(Mlt::Tractor *tractor);