Changeset 5111:090c5c2831a7 in roaraudio for libroar/buffer.c
- Timestamp:
- 07/31/11 20:43:58 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/buffer.c
r5013 r5111 542 542 *copy = NULL; 543 543 544 // TODO: This function does not handle ring buffers. 545 // FIXME: This function does not error out in case of wrong buffer type in buf. 546 // TODO: This function does not handle buffer meta data. 547 544 548 while (cur != NULL) { 545 549 if ( roar_buffer_new(&new, cur->user_len) == -1 ) { … … 553 557 *copy = new; 554 558 555 roar_buffer_get_data(cur, &od);556 roar_buffer_get_data(new, &nd);559 _LIBROAR_IGNORE_RET(roar_buffer_get_data(cur, &od)); 560 _LIBROAR_IGNORE_RET(roar_buffer_get_data(new, &nd)); 557 561 memcpy(nd, od, cur->user_len); 558 562 559 roar_buffer_add(*copy, new);563 _LIBROAR_IGNORE_RET(roar_buffer_add(*copy, new)); 560 564 561 565 cur = cur->next;
Note: See TracChangeset
for help on using the changeset viewer.