From 22f13d873ad705332f8d2e4dd39050b9716d4c4c Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 13 Dec 2004 19:05:01 +0000 Subject: fix segfault CVS patchset: 7246 CVS date: 2004/12/13 19:05:01 --- src/post/visualizations/fftscope.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/post/visualizations/fftscope.c') diff --git a/src/post/visualizations/fftscope.c b/src/post/visualizations/fftscope.c index 95ed6969e..02b92bf31 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.27 2004/05/29 14:45:26 mroi Exp $ + * $Id: fftscope.c,v 1.28 2004/12/13 19:05:13 miguelfreitas Exp $ * */ @@ -400,7 +400,10 @@ static void fftscope_port_put_buffer (xine_audio_port_t *port_gen, this->sample_counter -= this->samples_per_frame; - draw_fftscope(this, frame); + if( this->fft ) + draw_fftscope(this, frame); + else + frame->bad_frame = 1; frame->draw(frame, XINE_ANON_STREAM); frame->free(frame); -- cgit v1.2.3