summaryrefslogtreecommitdiff
path: root/src/dv1394.cc
diff options
context:
space:
mode:
authordeva <deva>2005-04-19 11:35:41 +0000
committerdeva <deva>2005-04-19 11:35:41 +0000
commit7d7ee51b2d4284f936a40b0edce760fbf226b93a (patch)
treef87be3fe8ac8a0b49ded2ebe3b88f0c8483d9a22 /src/dv1394.cc
parent9ea1160395b119536ba2ee74a99a4aba73c55711 (diff)
*** empty log message ***
Diffstat (limited to 'src/dv1394.cc')
-rw-r--r--src/dv1394.cc6
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()