]> git.sesse.net Git - kdenlive/blobdiff - src/monitor.cpp
Clear monitor when the clip was removed from project, should fix:
[kdenlive] / src / monitor.cpp
index c98060e1b4856a9f02754bfe2a3fd5d13909c975..8f8abf6b5d1df8af08ca964d381250b209699068 100644 (file)
@@ -602,9 +602,9 @@ void Monitor::slotLoopZone() {
 void Monitor::slotSetXml(DocClipBase *clip, const int position) {
     if (render == NULL) return;
     activateMonitor();
-    if (!clip) {
-        kDebug() << "// SETTING NULL CLIP";
+    if (!clip && m_currentClip != NULL) {
         m_currentClip = NULL;
+        render->setProducer(NULL, -1);
         return;
     }
     if (clip != m_currentClip) {