summaryrefslogtreecommitdiff
path: root/src/dv1394.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dv1394.cc')
-rw-r--r--src/dv1394.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dv1394.cc b/src/dv1394.cc
index d4912e4..004cb3d 100644
--- a/src/dv1394.cc
+++ b/src/dv1394.cc
@@ -69,7 +69,7 @@ static int raw_reader( raw1394handle_t handle, int channel, size_t length, quadl
if(!framedata)
{
// We're fucked
- // errobj->pushError("Were fucked: %s.\n", strerror( errno ) );
+ fprintf(stderr, "Framedata allocation error: %s.\n", strerror( errno ) ); fflush(stderr);
exit(1);
}
}
@@ -142,12 +142,12 @@ dv1394::dv1394(Error *e, int port, int channel)
dv1394::~dv1394()
{
// Close firewire connection.
- raw1394_destroy_handle(handle);
+ if(handle) raw1394_destroy_handle(handle);
}
unsigned char *dv1394::readFrame()
{
- // Firewiare port not correctly opened.
+ // Firewire port not correctly opened.
if(!handle) return NULL;
unsigned char *ptr;