From 4f1dc4c3cebf7ba10aa9b59866c4e2f7a0bfd852 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Wed, 30 Apr 2003 06:58:50 +0000 Subject: Don't forget to reset frame->bad_frame to 0 ! Fix strange problems with viz plugins. CVS patchset: 4716 CVS date: 2003/04/30 06:58:50 --- src/post/visualizations/fftscope.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/post/visualizations/fftscope.c') diff --git a/src/post/visualizations/fftscope.c b/src/post/visualizations/fftscope.c index 6c1cb6901..7ce034779 100644 --- a/src/post/visualizations/fftscope.c +++ b/src/post/visualizations/fftscope.c @@ -22,7 +22,7 @@ * * FFT code by Steve Haehnichen, originally licensed under GPL v1 * - * $Id: fftscope.c,v 1.12 2003/03/11 17:40:31 jkeil Exp $ + * $Id: fftscope.c,v 1.13 2003/04/30 06:58:51 tmattern Exp $ * */ @@ -538,6 +538,7 @@ static void fftscope_port_put_buffer (xine_audio_port_t *port_gen, uint64_t vpts = buf->vpts; int i, c; + /* make a copy of buf data for private use */ if( this->buf.mem_size < buf->mem_size ) { this->buf.mem = realloc(this->buf.mem, buf->mem_size); @@ -594,8 +595,10 @@ static void fftscope_port_put_buffer (xine_audio_port_t *port_gen, XINE_VO_ASPECT_SQUARE, XINE_IMGFMT_YUY2, VO_BOTH_FIELDS); frame->extra_info->invalid = 1; + frame->bad_frame = 0; frame->pts = vpts; vpts = 0; + frame->duration = 90000 * this->samples_per_frame / this->sample_rate; this->sample_counter -= this->samples_per_frame; -- cgit v1.2.3