From: Jean-Baptiste Mardelle Date: Sun, 30 Dec 2012 17:09:49 +0000 (+0100) Subject: Fix audio recording stopped when switching monitor: http://www.kdenlive.org/mantis... X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ff0585a36bfeb8fdf90220b240ce82a766ba7c82;p=kdenlive Fix audio recording stopped when switching monitor: http://www.kdenlive.org/mantis/view.php?id=2910 --- diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index 6f5de9ec..a7262fee 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -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..."));