Commit 3969c2f5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout_BufferAlloc: don't copy timestamps from original buffer

parent 4afebbfa
......@@ -721,12 +721,5 @@ aout_buffer_t *aout_BufferAlloc(aout_alloc_t *allocation, mtime_t microseconds,
buffer->i_size = i_alloc_size;
buffer->p_buffer = (uint8_t *)buffer + sizeof(aout_buffer_t);
buffer->b_discontinuity = false;
if ( old_buffer )
{
buffer->start_date = old_buffer->start_date;
buffer->end_date = old_buffer->end_date;
}
return buffer;
}
......@@ -353,6 +353,8 @@ void aout_FiltersPlay( aout_instance_t * p_aout,
*pp_input_buffer );
if( p_output_buffer == NULL )
return;
p_output_buffer->start_date = (*pp_input_buffer)->start_date;
p_output_buffer->end_date = (*pp_input_buffer)->end_date;
/* Please note that p_output_buffer->i_nb_samples & i_nb_bytes
* shall be set by the filter plug-in. */
......
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