Changeset 4044:bcbfaf0b8c5f in roaraudio


Ignore:
Timestamp:
07/09/10 14:36:09 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

don't use legacy function roar_get_connection_vio()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarcat.c

    r3812 r4044  
    6363 struct roar_connection    con; 
    6464 struct roar_stream        s; 
    65  struct roar_vio_calls     file, stream; 
     65 struct roar_vio_calls     file, * stream; 
    6666 struct roar_vio_defaults  def; 
    6767 int file_opened = 0; 
     
    199199 } 
    200200 
    201  if ( roar_get_connection_vio(&con, &stream) == -1 ) { 
     201 if ( (stream = roar_get_connection_vio2(&con)) == NULL ) { 
    202202  fprintf(stderr, "Error: can not get stream vio\n"); 
    203203  roar_disconnect(&con); 
     
    205205 } 
    206206 
    207  roar_vio_copy_data(&stream, &file); 
    208  
    209  roar_vio_close(&stream); 
     207 roar_vio_copy_data(stream, &file); 
     208 
     209 roar_vio_close(stream); 
    210210 roar_vio_close(&file); 
    211211 
Note: See TracChangeset for help on using the changeset viewer.