summaryrefslogtreecommitdiff
authorzecke <zecke>2004-09-10 11:47:55 (UTC)
committer zecke <zecke>2004-09-10 11:47:55 (UTC)
commit501c17ed2bb97f2062cb11daddeb698a6a9f2828 (patch) (side-by-side diff)
tree84e5659af9e1b0a0b4a99badae77124e02087344
parente2fa8fdfff6bb0460350d5f1017ead99deea7a0b (diff)
downloadopie-501c17ed2bb97f2062cb11daddeb698a6a9f2828.zip
opie-501c17ed2bb97f2062cb11daddeb698a6a9f2828.tar.gz
opie-501c17ed2bb97f2062cb11daddeb698a6a9f2828.tar.bz2
Fix various warning
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/camera/cmd/capture.cpp3
-rw-r--r--noncore/multimedia/camera/gui/mainwindow.cpp2
-rw-r--r--noncore/multimedia/camera/lib/avi.c1
3 files changed, 5 insertions, 1 deletions
diff --git a/noncore/multimedia/camera/cmd/capture.cpp b/noncore/multimedia/camera/cmd/capture.cpp
index 688622b..6b8c63c 100644
--- a/noncore/multimedia/camera/cmd/capture.cpp
+++ b/noncore/multimedia/camera/cmd/capture.cpp
@@ -182,11 +182,14 @@ int main( int argc, char** argv )
if ( !ZCameraIO::instance()->isOpen() )
{
printf( "Error: Can't detect your camera. Exiting.\n" );
return -1;
}
c->checkSettings();
c->capture();
+
+ delete c;
+ delete a;
return 0;
}
diff --git a/noncore/multimedia/camera/gui/mainwindow.cpp b/noncore/multimedia/camera/gui/mainwindow.cpp
index 7f2a9bd..bde448d 100644
--- a/noncore/multimedia/camera/gui/mainwindow.cpp
+++ b/noncore/multimedia/camera/gui/mainwindow.cpp
@@ -541,17 +541,17 @@ void CameraMainWindow::timerEvent( QTimerEvent* )
void CameraMainWindow::stopVideoCapture()
{
killTimers();
ODevice::inst()->playTouchSound();
ODevice::inst()->setLedState( Led_Mail, Led_Off );
_capturing = false;
updateCaption();
::close( _capturefd );
- _framerate = 1000.0 / (_time.elapsed()/_videopics);
+ _framerate = static_cast<int>( 1000.0 / (_time.elapsed()/_videopics) );
QString name;
if ( outputTo == "Documents Folder" )
{
name.sprintf( "%s/Documents/video/%s/", (const char*) QDir::homeDirPath(), (const char*) captureFormat.lower() );
if ( !QDir( name ).exists() )
{
odebug << "creating directory " << name << oendl;
diff --git a/noncore/multimedia/camera/lib/avi.c b/noncore/multimedia/camera/lib/avi.c
index 77aba33..d99c016 100644
--- a/noncore/multimedia/camera/lib/avi.c
+++ b/noncore/multimedia/camera/lib/avi.c
@@ -13,16 +13,17 @@
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
**********************************************************************/
#include "avi.h"
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
int nframes;
int totalsize;
unsigned int* sizes;
void fprint_quartet(int fd, unsigned int i)
{
char data[4];