diff options
author | deva <deva> | 2005-04-19 10:15:17 +0000 |
---|---|---|
committer | deva <deva> | 2005-04-19 10:15:17 +0000 |
commit | 322d53169f05269c6150019cb7fc7cd85c024cc8 (patch) | |
tree | 565bb2175a468c7c3214ffb7a52aa5a66130cb9e /src/decoder.cc | |
parent | e5d332d18f5211920dbc5db02560512a128db3c0 (diff) |
Added dv1394 object
Diffstat (limited to 'src/decoder.cc')
-rw-r--r-- | src/decoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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); |