diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2001-09-11 09:03:51 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2001-09-11 09:03:51 +0000 |
commit | 2748ef6cbc482cf739a0c20c54acd3634091191c (patch) | |
tree | 2a7dccfc98ad9415a0eca72a825473fba890e4ec /src/xine-engine/audio_decoder.c | |
parent | 949bc4183444bf5c259147c2c673897e0d45cd4b (diff) | |
download | xine-lib-2748ef6cbc482cf739a0c20c54acd3634091191c.tar.gz xine-lib-2748ef6cbc482cf739a0c20c54acd3634091191c.tar.bz2 |
Re-use the same profiler id (after pthread_exit -> pthread_create)
CVS patchset: 609
CVS date: 2001/09/11 09:03:51
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index f85ee2d29..79f79b17b 100644 --- a/src/xine-engine/audio_decoder.c +++ b/src/xine-engine/audio_decoder.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: audio_decoder.c,v 1.36 2001/09/10 13:36:56 jkeil Exp $ + * $Id: audio_decoder.c,v 1.37 2001/09/11 09:03:51 jkeil Exp $ * * * functions that implement audio decoding @@ -41,7 +41,10 @@ void *audio_decoder_loop (void *this_gen) { int running = 1; int i,j; audio_decoder_t *decoder; - int prof_audio_decode = profiler_allocate_slot ("audio decoder/output"); + static int prof_audio_decode = -1; + + if (prof_audio_decode == -1) + prof_audio_decode = profiler_allocate_slot ("audio decoder/output"); while (running) { |