From e422232e6a5235e12fd143481d7d987d201a5208 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 18 May 2004 03:16:12 +0000 Subject: track number of times the port has being opened. rewiring a closed port won't cause the new destination to be opened. CVS patchset: 6564 CVS date: 2004/05/18 03:16:12 --- src/post/audio/upmix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/post/audio/upmix.c') diff --git a/src/post/audio/upmix.c b/src/post/audio/upmix.c index 514475339..129e63f9e 100644 --- a/src/post/audio/upmix.c +++ b/src/post/audio/upmix.c @@ -23,7 +23,7 @@ * It simply creates output channels to match the speaker arrangement. * E.g. Converts Stereo into Surround 5.1 * - * $Id: upmix.c,v 1.11 2004/05/17 21:47:01 jcdutton Exp $ + * $Id: upmix.c,v 1.12 2004/05/18 03:17:02 miguelfreitas Exp $ * */ @@ -184,6 +184,7 @@ static int upmix_port_open(xine_audio_port_t *port_gen, xine_stream_t *stream, port->bits = bits; port->rate = rate; port->mode = mode; + port->open_count++; capabilities = port->original_port->get_capabilities(port->original_port); this->ratio = (double)FOO_WIDTH/(double)FOO_HEIGHT; @@ -228,6 +229,7 @@ static void upmix_port_close(xine_audio_port_t *port_gen, xine_stream_t *stream port->stream = NULL; port->original_port->close(port->original_port, stream ); + port->open_count--; _x_post_dec_usage(port); } -- cgit v1.2.3