Changeset 1701

Show
Ignore:
Timestamp:
11/09/09 12:04:57 (14 years ago)
Author:
arnonym
Message:

As far as I can tell these patches don't break the old stack. So apply them... see #240

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/tests/dumpiso_mod.cpp

    r1136 r1701  
    247247{ 
    248248        raw1394handle_t handle; 
    249         int i
     249        int i, ret
    250250 
    251251        parse_args(argc, argv); 
     
    271271                } 
    272272 
    273                 raw1394_set_port(handle, which_port); 
    274         } while (errno == ESTALE); 
    275  
    276         if (errno) { 
     273                ret = raw1394_set_port(handle, which_port); 
     274        } while (ret < 0 && errno == ESTALE); 
     275 
     276        if (ret < 0) { 
    277277                perror("raw1394_set_port"); 
    278278                exit(1); 
    279279        } 
    280280 
    281         global_handle = raw1394_new_handle(); 
    282         raw1394_set_port(global_handle, which_port); 
     281        global_handle = raw1394_new_handle_on_port(which_port); 
     282        if (!global_handle) { 
     283                perror("raw1394_new_handle_on_port"); 
     284                exit(1); 
     285        } 
    283286 
    284287        open_dumpfile();