summaryrefslogtreecommitdiff
path: root/src/xine-engine/audio_decoder.c
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-09-10 13:36:56 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-09-10 13:36:56 +0000
commitd9f6f14d5110787be31160ef4956bebe572cba4d (patch)
treec80f06c376a1ce653c1150a5fcaa5a93f1646a31 /src/xine-engine/audio_decoder.c
parent6fdc5685796399e9ddea30b7dcffc607bd4c10b3 (diff)
downloadxine-lib-d9f6f14d5110787be31160ef4956bebe572cba4d.tar.gz
xine-lib-d9f6f14d5110787be31160ef4956bebe572cba4d.tar.bz2
Dynamically allocate the profiler IDs, and add a profiler for video_out_xshm's
yuv2rgb conversion CVS patchset: 601 CVS date: 2001/09/10 13:36:56
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r--src/xine-engine/audio_decoder.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c
index 76bf4d03c..f85ee2d29 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.35 2001/09/10 03:04:48 guenter Exp $
+ * $Id: audio_decoder.c,v 1.36 2001/09/10 13:36:56 jkeil Exp $
*
*
* functions that implement audio decoding
@@ -41,6 +41,7 @@ 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");
while (running) {
@@ -130,7 +131,7 @@ void *audio_decoder_loop (void *this_gen) {
if (this->audio_mute)
break;
- profiler_start_count (1);
+ profiler_start_count (prof_audio_decode);
if ( (buf->type & 0xFF000000) == BUF_AUDIO_BASE ) {
@@ -197,7 +198,7 @@ void *audio_decoder_loop (void *this_gen) {
} else
printf ("audio_loop: unknown buffer type: %08x\n", buf->type);
- profiler_stop_count (1);
+ profiler_stop_count (prof_audio_decode);
}
buf->free_buffer (buf);