From 190eeb7a152f9ebd2c9f721e876ae5caea739e7b Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 16 Jul 2005 17:00:50 +0000 Subject: - stretch.c: warning fix - upmix_mono: use default's port names ("audio in", "audio out"). i know that video post plugin like to name their ports differently, but having standard names can make frontends' job easier when figuring out how to wire plugins. i just won't change the existing plugins to not break compatibility with frontends that might use them already... CVS patchset: 7643 CVS date: 2005/07/16 17:00:50 --- src/post/audio/stretch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/post/audio/stretch.c') diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c index 1f8eb3797..f5b7fd4de 100644 --- a/src/post/audio/stretch.c +++ b/src/post/audio/stretch.c @@ -19,7 +19,7 @@ * * Time stretch by a given factor, optionally preserving pitch * - * $Id: stretch.c,v 1.6 2005/05/07 09:11:39 valtri Exp $ + * $Id: stretch.c,v 1.7 2005/07/16 17:00:50 miguelfreitas Exp $ * */ @@ -476,7 +476,7 @@ static void stretch_process_fragment( post_audio_port_t *port, memcpy( outbuf->mem, data_out, outbuf->num_frames * this->bytes_per_frame ); num_frames_out -= outbuf->num_frames; - data_out = (uint8_t *)data_out + outbuf->num_frames * this->bytes_per_frame; + data_out = (uint16_t *)((uint8_t *)data_out + outbuf->num_frames * this->bytes_per_frame); outbuf->vpts = this->pts; this->pts = 0; @@ -587,7 +587,7 @@ static void stretch_port_put_buffer (xine_audio_port_t *port_gen, memcpy( (uint8_t *)this->audiofrag + this->num_frames * this->bytes_per_frame, data_in, frames_to_copy * this->bytes_per_frame ); - data_in = (uint8_t *)data_in + frames_to_copy * this->bytes_per_frame; + data_in = (uint16_t *)((uint8_t *)data_in + frames_to_copy * this->bytes_per_frame); this->num_frames += frames_to_copy; buf->num_frames -= frames_to_copy; -- cgit v1.2.3