From 322d53169f05269c6150019cb7fc7cd85c024cc8 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 19 Apr 2005 10:15:17 +0000 Subject: Added dv1394 object --- src/decoder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/decoder.cc') diff --git a/src/decoder.cc b/src/decoder.cc index 4bdf2cf..d8ae2f5 100644 --- a/src/decoder.cc +++ b/src/decoder.cc @@ -123,7 +123,7 @@ void Decoder::decode() { // FIXME: Read port and channel data from config. int port = 0; - int channel = 63; + int channel = 63; // 63 is default channel... sucks. int n_ports; struct raw1394_portinfo pinf[ 16 ]; @@ -146,11 +146,11 @@ void Decoder::decode() // Tell raw1394 which host adapter to use if(raw1394_set_port(handle, port) < 0 ) { errobj->pushError("Error while opening codec for input stream."); - fprintf( stderr, "raw1394 - failed to set set port: %s.\n", strerror( errno ) ); + fprintf( stderr, "raw1394 - failed to set port: %s.\n", strerror( errno ) ); exit( EXIT_FAILURE ); } - raw1394_set_iso_handler( handle, channel, raw_reader); // 63 is default channel... sucks. + raw1394_set_iso_handler( handle, channel, raw_reader); raw1394_set_userdata( handle, ( void* ) NULL); raw1394_start_iso_rcv( handle, channel); -- cgit v1.2.3