Loading lib_rend/ivas_td_ring_buffer_fx.c +4 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,7 @@ ivas_error ivas_TD_RINGBUF_Open( return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Failed to allocate memory for TD ring buffer\n" ); } h->data = NULL; move32(); h->capacity = 0; move32(); h->num_channels = num_channels; Loading @@ -119,6 +120,7 @@ ivas_error ivas_TD_RINGBUF_Open( h->is_full = 0; move16(); *ph = h; move32(); h->data = malloc( capacity * sizeof( Word32 ) ); if ( h->data == NULL ) Loading Loading @@ -150,6 +152,7 @@ void ivas_TD_RINGBUF_Close( return; } h = *ph; move32(); IF( h == NULL ) { Loading @@ -163,6 +166,7 @@ void ivas_TD_RINGBUF_Close( free( h ); *ph = NULL; move32(); return; } Loading Loading
lib_rend/ivas_td_ring_buffer_fx.c +4 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,7 @@ ivas_error ivas_TD_RINGBUF_Open( return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Failed to allocate memory for TD ring buffer\n" ); } h->data = NULL; move32(); h->capacity = 0; move32(); h->num_channels = num_channels; Loading @@ -119,6 +120,7 @@ ivas_error ivas_TD_RINGBUF_Open( h->is_full = 0; move16(); *ph = h; move32(); h->data = malloc( capacity * sizeof( Word32 ) ); if ( h->data == NULL ) Loading Loading @@ -150,6 +152,7 @@ void ivas_TD_RINGBUF_Close( return; } h = *ph; move32(); IF( h == NULL ) { Loading @@ -163,6 +166,7 @@ void ivas_TD_RINGBUF_Close( free( h ); *ph = NULL; move32(); return; } Loading