From 7d7ee51b2d4284f936a40b0edce760fbf226b93a Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 19 Apr 2005 11:35:41 +0000 Subject: *** empty log message *** --- src/dv1394.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/dv1394.cc') diff --git a/src/dv1394.cc b/src/dv1394.cc index 8d62605..339d192 100644 --- a/src/dv1394.cc +++ b/src/dv1394.cc @@ -112,12 +112,14 @@ dv1394::dv1394(Error *e, int port, int channel) // Get handle to firewire channels handle = raw1394_new_handle(); if(!handle) { + // errobj->pushError(""); fprintf( stderr, "raw1394 - failed to get handle: %s.\n", strerror( errno ) ); exit( EXIT_FAILURE ); } // how many adapters are hooked in? if((n_ports = raw1394_get_port_info(handle, pinf, 16)) < 0 ) { + // errobj->pushError(""); fprintf( stderr, "raw1394 - failed to get port info: %s.\n", strerror( errno ) ); raw1394_destroy_handle( handle ); exit( EXIT_FAILURE ); @@ -125,7 +127,7 @@ dv1394::dv1394(Error *e, int port, int channel) // Tell raw1394 which host adapter to use if(raw1394_set_port(handle, port) < 0 ) { - errobj->pushError("Error while opening codec for input stream."); + // errobj->pushError(""); fprintf( stderr, "raw1394 - failed to set port: %s.\n", strerror( errno ) ); exit( EXIT_FAILURE ); } @@ -138,6 +140,8 @@ dv1394::dv1394(Error *e, int port, int channel) dv1394::~dv1394() { + // Close firewire connection. + raw1394_destroy_handle(handle); } unsigned char *dv1394::readFrame() -- cgit v1.2.3