diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-25 08:48:12 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-25 08:48:12 +0000 |
commit | fe430aaa604b69cd1cad096ed44d7055eb12bc76 (patch) | |
tree | 34cd17c9ac30627cb11cd4a6a173ccbe6ffa0bbb /src | |
parent | b99526ff3e6e88c5e0abbc9342aecd47ca263373 (diff) | |
download | xine-lib-fe430aaa604b69cd1cad096ed44d7055eb12bc76.tar.gz xine-lib-fe430aaa604b69cd1cad096ed44d7055eb12bc76.tar.bz2 |
measuring complete audio/video output performance
CVS patchset: 490
CVS date: 2001/08/25 08:48:12
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 7 | ||||
-rw-r--r-- | src/xine-engine/video_decoder.c | 9 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 7760d087b..0a98a15d8 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.30 2001/08/25 07:51:24 guenter Exp $ + * $Id: audio_decoder.c,v 1.31 2001/08/25 08:48:12 guenter Exp $ * * * functions that implement audio decoding @@ -41,6 +41,8 @@ void *audio_decoder_loop (void *this_gen) { int i,j; audio_decoder_t *decoder; + profiler_start_count (1); + while (running) { /* printf ("audio_loop: waiting for package...\n"); */ @@ -183,9 +185,7 @@ void *audio_decoder_loop (void *this_gen) { } - profiler_start_count (1); decoder->decode_data (decoder, buf); - profiler_stop_count (1); } } } else @@ -195,6 +195,7 @@ void *audio_decoder_loop (void *this_gen) { buf->free_buffer (buf); } + profiler_stop_count (1); pthread_exit(NULL); } diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c index 74c7271a3..0d6fe341d 100644 --- a/src/xine-engine/video_decoder.c +++ b/src/xine-engine/video_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: video_decoder.c,v 1.42 2001/08/20 23:00:05 jcdutton Exp $ + * $Id: video_decoder.c,v 1.43 2001/08/25 08:48:12 guenter Exp $ * */ @@ -56,6 +56,9 @@ void *video_decoder_loop (void *this_gen) { video_decoder_t *decoder; spu_decoder_t *spu_decoder; + + profiler_start_count (0); + while (running) { /* printf ("video_decoder: getting buffer...\n"); */ @@ -138,9 +141,7 @@ void *video_decoder_loop (void *this_gen) { } - profiler_start_count (0); decoder->decode_data (this->cur_video_decoder_plugin, buf); - profiler_stop_count (0); } break; @@ -191,6 +192,8 @@ void *video_decoder_loop (void *this_gen) { buf->free_buffer (buf); } + profiler_stop_count (0); + pthread_exit(NULL); } |