diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-04-30 06:58:50 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-04-30 06:58:50 +0000 |
commit | 4f1dc4c3cebf7ba10aa9b59866c4e2f7a0bfd852 (patch) | |
tree | d93b1346c31e5de6edf3e73ddbf9480c22e20025 /src/post/visualizations/fftscope.c | |
parent | 5f38710fc2e566f572d53bb9a96debf8006d0f7e (diff) | |
download | xine-lib-4f1dc4c3cebf7ba10aa9b59866c4e2f7a0bfd852.tar.gz xine-lib-4f1dc4c3cebf7ba10aa9b59866c4e2f7a0bfd852.tar.bz2 |
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
Diffstat (limited to 'src/post/visualizations/fftscope.c')
-rw-r--r-- | src/post/visualizations/fftscope.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |