[vlc-devel] commit: Fixed scaletempo after "audio filter2" conversion. (Laurent Aimar )

git version control git at videolan.org
Sun Oct 4 18:50:53 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Oct  4 18:40:22 2009 +0200| [9418bdc611b99a9d1d6b6b8cc9c5815edcbb5e74] | committer: Laurent Aimar 

Fixed scaletempo after "audio filter2" conversion.

The output timestamp/length wasn't set anymore.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9418bdc611b99a9d1d6b6b8cc9c5815edcbb5e74
---

 modules/audio_filter/scaletempo.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/audio_filter/scaletempo.c b/modules/audio_filter/scaletempo.c
index 225f884..8c9e974 100644
--- a/modules/audio_filter/scaletempo.c
+++ b/modules/audio_filter/scaletempo.c
@@ -493,8 +493,11 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
         p_in_buf->p_buffer, p_in_buf->i_buffer,
         p_out_buf->p_buffer );
 
-    block_Release( p_in_buf );
-    p_out_buf->i_buffer   = bytes_out;
+    p_out_buf->i_buffer     = bytes_out;
     p_out_buf->i_nb_samples = bytes_out / p->bytes_per_frame;
+    p_out_buf->i_pts        = p_in_buf->i_pts;
+    p_out_buf->i_length     = p_in_buf->i_length;
+
+    block_Release( p_in_buf );
     return p_out_buf;
 }




More information about the vlc-devel mailing list