diff options
Diffstat (limited to 'src/dv1394.cc')
-rw-r--r-- | src/dv1394.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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() |