summaryrefslogtreecommitdiff
path: root/src/post/visualizations/fftscope.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/post/visualizations/fftscope.c')
-rw-r--r--src/post/visualizations/fftscope.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/post/visualizations/fftscope.c b/src/post/visualizations/fftscope.c
index eb0f2b2f1..d2a98bb9f 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.25 2004/02/12 18:25:08 mroi Exp $
+ * $Id: fftscope.c,v 1.26 2004/05/18 03:17:03 miguelfreitas Exp $
*
*/
@@ -284,6 +284,7 @@ static int fftscope_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream
port->bits = bits;
port->rate = rate;
port->mode = mode;
+ port->open_count++;
this->ratio = (double)FFT_WIDTH/(double)FFT_HEIGHT;
@@ -325,6 +326,8 @@ static void fftscope_port_close(xine_audio_port_t *port_gen, xine_stream_t *stre
port->original_port->close(port->original_port, stream );
+ port->open_count--;
+
_x_post_dec_usage(port);
}