Changeset 3859:692da44cb264 in roaraudio for libroar/vio.c


Ignore:
Timestamp:
05/16/10 23:09:04 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

support NULL as stream object in roar_vio_simple_new_stream_obj()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio.c

    r3858 r3859  
    285285                                        struct roar_stream * s, 
    286286                                        int rate, int channels, int bits, int codec, int dir) { 
     287 struct roar_stream stream; 
    287288 int fh; 
    288289 
    289290 if ( calls == NULL ) 
    290291  return -1; 
     292 
     293 if ( s == NULL ) 
     294  s = &stream; 
    291295 
    292296 if ( (fh = roar_simple_new_stream_obj(con, s, rate, channels, bits, codec, dir)) == -1 ) 
Note: See TracChangeset for help on using the changeset viewer.