Diffstat (limited to 'noncore/multimedia/camera/gui/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/camera/gui/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/multimedia/camera/gui/mainwindow.cpp b/noncore/multimedia/camera/gui/mainwindow.cpp index 49c7cbf..0854f0d 100644 --- a/noncore/multimedia/camera/gui/mainwindow.cpp +++ b/noncore/multimedia/camera/gui/mainwindow.cpp | |||
@@ -455,17 +455,17 @@ void CameraMainWindow::performCapture( const QString& format ) | |||
455 | odebug << captureFormat << "-image has been successfully captured" << oendl; | 455 | odebug << captureFormat << "-image has been successfully captured" << oendl; |
456 | Global::statusMessage( "Ok." ); | 456 | Global::statusMessage( "Ok." ); |
457 | } | 457 | } |
458 | } | 458 | } |
459 | 459 | ||
460 | 460 | ||
461 | void CameraMainWindow::startVideoCapture() | 461 | void CameraMainWindow::startVideoCapture() |
462 | { | 462 | { |
463 | //ODevice::inst()->touchSound(); | 463 | ODevice::inst()->touchSound(); |
464 | ODevice::inst()->setLedState( Led_Mail, Led_BlinkSlow ); | 464 | ODevice::inst()->setLedState( Led_Mail, Led_BlinkSlow ); |
465 | 465 | ||
466 | _capturefd = ::open( CAPTUREFILE, O_WRONLY | O_CREAT | O_TRUNC ); | 466 | _capturefd = ::open( CAPTUREFILE, O_WRONLY | O_CREAT | O_TRUNC ); |
467 | if ( _capturefd == -1 ) | 467 | if ( _capturefd == -1 ) |
468 | { | 468 | { |
469 | owarn << "can't open capture file: " << strerror(errno) << oendl; | 469 | owarn << "can't open capture file: " << strerror(errno) << oendl; |
470 | return; | 470 | return; |
471 | } | 471 | } |
@@ -497,17 +497,17 @@ void CameraMainWindow::timerEvent( QTimerEvent* ) | |||
497 | setCaption( QString().sprintf( "Capturing %dx%d @ %.2f fps %d", | 497 | setCaption( QString().sprintf( "Capturing %dx%d @ %.2f fps %d", |
498 | captureX, captureY, 1000.0 / (_time.elapsed()/_videopics), _videopics ) ); | 498 | captureX, captureY, 1000.0 / (_time.elapsed()/_videopics), _videopics ) ); |
499 | } | 499 | } |
500 | 500 | ||
501 | 501 | ||
502 | void CameraMainWindow::stopVideoCapture() | 502 | void CameraMainWindow::stopVideoCapture() |
503 | { | 503 | { |
504 | killTimers(); | 504 | killTimers(); |
505 | //ODevice::inst()->touchSound(); | 505 | ODevice::inst()->touchSound(); |
506 | ODevice::inst()->setLedState( Led_Mail, Led_Off ); | 506 | ODevice::inst()->setLedState( Led_Mail, Led_Off ); |
507 | _capturing = false; | 507 | _capturing = false; |
508 | updateCaption(); | 508 | updateCaption(); |
509 | ::close( _capturefd ); | 509 | ::close( _capturefd ); |
510 | _framerate = 1000.0 / (_time.elapsed()/_videopics); | 510 | _framerate = 1000.0 / (_time.elapsed()/_videopics); |
511 | 511 | ||
512 | QString name; | 512 | QString name; |
513 | if ( outputTo == "Documents Folder" ) | 513 | if ( outputTo == "Documents Folder" ) |