From d2458728cd226a2651005acfd3241e1a5f77782c Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 26 Apr 2005 09:32:28 +0000 Subject: Tested some audio output code... didn't work... tesing it again later. --- src/dv1394.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dv1394.cc') 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; -- cgit v1.2.3