Commit 04685d70 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove aout_buffer_t.b_alloc (it's always true)

When allocation is false, aout_BufferFree is simply not called.
parent 3969c2f5
......@@ -133,7 +133,6 @@ struct aout_buffer_t
* is the number of significative bytes in it. */
size_t i_size, i_nb_bytes;
unsigned int i_nb_samples;
bool b_alloc;
bool b_discontinuity; /* Set on discontinuity (for non pcm stream) */
mtime_t start_date, end_date;
......@@ -143,8 +142,7 @@ struct aout_buffer_t
static inline void aout_BufferFree( aout_buffer_t *buffer )
{
if( buffer && buffer->b_alloc )
free( buffer );
free( buffer );
}
/* Size of a frame for S/PDIF output. */
......
......@@ -717,7 +717,6 @@ aout_buffer_t *aout_BufferAlloc(aout_alloc_t *allocation, mtime_t microseconds,
if ( !buffer )
return NULL;
buffer->b_alloc = true;
buffer->i_size = i_alloc_size;
buffer->p_buffer = (uint8_t *)buffer + sizeof(aout_buffer_t);
buffer->b_discontinuity = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment