From: Till Theato Date: Wed, 12 May 2010 20:53:10 +0000 (+0000) Subject: - First step towards proper recordmydesktop error handling X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e74ab8b6f59ecb0152ba72743e1e556482644c2c;p=kdenlive - First step towards proper recordmydesktop error handling - Set minimal track height to 10 px - Set minimal recordmydesktop framerate to 1 svn path=/trunk/kdenlive/; revision=4434 --- diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index 645ab89e..f94bd83b 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -315,10 +315,6 @@ void RecMonitor::slotStopCapture() m_isPlaying = false; break; case VIDEO4LINUX: - m_captureProcess->write("q\n", 3); - QTimer::singleShot(1000, m_captureProcess, SLOT(kill())); - - break; case SCREENGRAB: m_captureProcess->write("q\n", 3); QTimer::singleShot(1000, m_captureProcess, SLOT(kill())); @@ -594,8 +590,15 @@ void RecMonitor::slotProcessStatus(QProcess::ProcessState status) if (m_captureProcess && m_captureProcess->exitStatus() == QProcess::CrashExit) { video_frame->setText(i18n("Capture crashed, please check your parameters")); } else { - if (device_selector->currentIndex() != SCREENGRAB) video_frame->setText(i18n("Not connected")); - else video_frame->setPixmap(mergeSideBySide(KIcon("video-display").pixmap(QSize(50, 50)), i18n("Press record button\nto start screen capture\nFiles will be saved in:\n%1", KdenliveSettings::capturefolder()))); + if (device_selector->currentIndex() != SCREENGRAB) { + video_frame->setText(i18n("Not connected")); + } else { + if (m_captureProcess->exitCode() != 0) { + video_frame->setText(i18n("Capture crashed, please check your parameters\nRecordMyDesktop exit code: %1", QString::number(m_captureProcess->exitCode()))); + } else { + video_frame->setPixmap(mergeSideBySide(KIcon("video-display").pixmap(QSize(50, 50)), i18n("Press record button\nto start screen capture\nFiles will be saved in:\n%1", KdenliveSettings::capturefolder()))); + } + } } m_isCapturing = false; diff --git a/src/recmonitor.h b/src/recmonitor.h index f216a113..9cebdcd5 100644 --- a/src/recmonitor.h +++ b/src/recmonitor.h @@ -17,6 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ +/** +* @class RecMonitor +* @brief Record video with dvgrab, video4linux and recordmydesktop +* @author Jean-Baptiste Mardelle +*/ #ifndef RECMONITOR_H #define RECMONITOR_H diff --git a/src/widgets/configcapture_ui.ui b/src/widgets/configcapture_ui.ui index dee30649..f41f77c2 100644 --- a/src/widgets/configcapture_ui.ui +++ b/src/widgets/configcapture_ui.ui @@ -633,7 +633,11 @@ - + + + 1.000000000000000 + + @@ -702,7 +706,6 @@ - diff --git a/src/widgets/configdisplay_ui.ui b/src/widgets/configdisplay_ui.ui index 89a367d5..e88fe3c8 100644 --- a/src/widgets/configdisplay_ui.ui +++ b/src/widgets/configdisplay_ui.ui @@ -6,8 +6,8 @@ 0 0 - 396 - 197 + 398 + 213 @@ -76,7 +76,14 @@ - + + + 10 + + + 10 + +