[vlc-devel] commit: aout_BufferAlloc: don't copy timestamps from original buffer ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Sep 22 23:01:58 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Sep 22 23:42:56 2009 +0300| [3969c2f5b9f07b0e61e33f964edecf5f263896cb] | committer: Rémi Denis-Courmont
aout_BufferAlloc: don't copy timestamps from original buffer
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3969c2f5b9f07b0e61e33f964edecf5f263896cb
---
src/audio_output/common.c | 7 -------
src/audio_output/filters.c | 2 ++
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/audio_output/common.c b/src/audio_output/common.c
index c6a0d68..bd9556c 100644
--- a/src/audio_output/common.c
+++ b/src/audio_output/common.c
@@ -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;
}
diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
index 82b4d52..fbb8068 100644
--- a/src/audio_output/filters.c
+++ b/src/audio_output/filters.c
@@ -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. */
More information about the vlc-devel
mailing list