Changeset 48:46de3dd48996 in roaraudio


Ignore:
Timestamp:
06/22/08 20:42:40 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

maybe we should also copy the data in roar_buffer_duplicate() ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/buffer.c

    r46 r48  
    152152 struct roar_buffer *  cur = buf; 
    153153 struct roar_buffer *  new; 
     154 void * od, * nd; 
    154155 
    155156 *copy = NULL; 
     
    163164  if ( *copy == NULL ) 
    164165   *copy = new; 
     166 
     167  roar_buffer_get_data(cur, &od); 
     168  roar_buffer_get_data(new, &nd); 
     169  memcpy(nd, od, cur->user_len); 
    165170 
    166171  roar_buffer_add(*copy, new); 
Note: See TracChangeset for help on using the changeset viewer.