Changeset 5720:d5aae161b279 in roaraudio


Ignore:
Timestamp:
10/30/12 21:45:35 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

do not try to add the current new buffer to itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/buffer.c

    r5652 r5720  
    611611  memcpy(nd, od, cur->user_len); 
    612612 
    613   _LIBROAR_IGNORE_RET(roar_buffer_moveinto(*copy, &new)); 
     613  if ( *copy != new ) { 
     614   _LIBROAR_IGNORE_RET(roar_buffer_moveinto(*copy, &new)); 
     615  } 
    614616 
    615617  cur = cur->next; 
Note: See TracChangeset for help on using the changeset viewer.