]> git.sesse.net Git - kdenlive/commitdiff
Fix audio recording stopped when switching monitor: http://www.kdenlive.org/mantis...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 30 Dec 2012 17:09:49 +0000 (18:09 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 30 Dec 2012 17:09:49 +0000 (18:09 +0100)
src/recmonitor.cpp

index 6f5de9ec66852c7e1f84b6942c92d8a3597b1919..a7262feec7bf8666360b156469347e2a06e333a0 100644 (file)
@@ -192,6 +192,8 @@ void RecMonitor::slotSwitchFullScreen()
 
 void RecMonitor::stop()
 {
+    // Special case: when recording audio only, do not stop so that we can do voiceover.
+    if (device_selector->currentIndex() == VIDEO4LINUX && !rec_video->isChecked()) return;
     slotStopCapture();
 }
 
@@ -549,8 +551,6 @@ void RecMonitor::slotStartPreview(bool play)
 
 void RecMonitor::slotRecord()
 {
-    control_frame->setEnabled(false);
-
     if (m_captureProcess->state() == QProcess::NotRunning && device_selector->currentIndex() == FIREWIRE) {
         slotStartPreview();
     }
@@ -648,6 +648,7 @@ void RecMonitor::slotRecord()
                 m_recAction->setEnabled(false);
                 m_stopAction->setEnabled(true);
                 m_previewSettings->setEnabled(false);
+               control_frame->setEnabled(false);
             }
             else {
                 video_frame->setText(i18n("Failed to start Video4Linux,\ncheck your parameters..."));