QDomElement blank0 = doc.createElement("entry");
blank0.setAttribute("in", "0");
- blank0.setAttribute("out", "0");
+ blank0.setAttribute("out", "1");
blank0.setAttribute("producer", "black");
playlist.appendChild(blank0);
{
if (m_currentClip != NULL && m_playAction->isChecked()) {
// Clip monitor
- if (pos >= m_length - 1) {
+ if (m_isActive && pos >= m_length - 1) {
slotStart();
return;
}
void Monitor::refreshMonitor(bool visible)
{
- if (visible && render) {
+ if (visible && render && !m_isActive) {
activateMonitor();
render->doRefresh(); //askForRefresh();
}
void Monitor::slotSetXml(DocClipBase *clip, QPoint zone, const int position)
{
if (render == NULL) return;
- activateMonitor();
if (clip == NULL && m_currentClip != NULL) {
m_currentClip = NULL;
+ m_length = -1;
render->setProducer(NULL, -1);
return;
}
+ if (m_currentClip != NULL) activateMonitor();
if (clip != m_currentClip) {
m_currentClip = clip;
updateMarkers(clip);