From 2748ef6cbc482cf739a0c20c54acd3634091191c Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Tue, 11 Sep 2001 09:03:51 +0000 Subject: Re-use the same profiler id (after pthread_exit -> pthread_create) CVS patchset: 609 CVS date: 2001/09/11 09:03:51 --- src/xine-engine/audio_decoder.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/xine-engine/audio_decoder.c') 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) { -- cgit v1.2.3