diff options
| author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-05-18 03:16:12 +0000 |
|---|---|---|
| committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-05-18 03:16:12 +0000 |
| commit | e422232e6a5235e12fd143481d7d987d201a5208 (patch) | |
| tree | 8a7e4db6a8e8b283dc91e33b0181d43a145d2d58 /src/post/goom | |
| parent | 23f2c85267adc425a7b89b91fdc4b36729b87d68 (diff) | |
| download | xine-lib-e422232e6a5235e12fd143481d7d987d201a5208.tar.gz xine-lib-e422232e6a5235e12fd143481d7d987d201a5208.tar.bz2 | |
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
Diffstat (limited to 'src/post/goom')
| -rw-r--r-- | src/post/goom/xine_goom.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c index 221dd213c..4575e0078 100644 --- a/src/post/goom/xine_goom.c +++ b/src/post/goom/xine_goom.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_goom.c,v 1.51 2004/04/26 17:50:09 mroi Exp $ + * $Id: xine_goom.c,v 1.52 2004/05/18 03:17:02 miguelfreitas Exp $ * * GOOM post plugin. * @@ -364,6 +364,7 @@ static int goom_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->channels = _x_ao_mode2channels(mode); this->sample_rate = rate; @@ -392,6 +393,8 @@ static void goom_port_close(xine_audio_port_t *port_gen, xine_stream_t *stream ) port->original_port->close(port->original_port, stream ); + port->open_count--; + _x_post_dec_usage(port); } |
