summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-03-13 13:38:57 -0500
committerSlávek Banko <slavek.banko@axis.cz>2013-03-11 18:21:23 +0100
commiteab3d91c64c6e6d79f5ff05a611677561abd001f (patch)
tree0473ccd82cb9cb01beac70c985c00d95409cef9f
parent98664ceb22ec5ff56442738ab28b88e0397c01c5 (diff)
downloadtdemultimedia-eab3d91c64c6e6d79f5ff05a611677561abd001f.tar.gz
tdemultimedia-eab3d91c64c6e6d79f5ff05a611677561abd001f.zip
Add source code module name [xine_artsplugin] to stdout/stderr messages to improve readability.
(cherry picked from commit faeb21a4d31064da988d7dc13d4abfae8c4a35f7)
-rw-r--r--xine_artsplugin/audio_fifo_out.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xine_artsplugin/audio_fifo_out.c b/xine_artsplugin/audio_fifo_out.c
index eb5e24bc..f5256e1b 100644
--- a/xine_artsplugin/audio_fifo_out.c
+++ b/xine_artsplugin/audio_fifo_out.c
@@ -55,7 +55,7 @@ static int ao_fifo_open( ao_driver_t *this_gen, uint32_t bits, uint32_t rate, in
if ((mode & ao->capabilities) == 0)
{
- fprintf( stderr, "fifo_audio_out: unsupported mode %08x\n", mode);
+ fprintf( stderr, "[xine_artsplugin audio_fifo_out] unsupported mode %08x\n", mode);
return 0;
}
@@ -158,8 +158,8 @@ static int ao_fifo_write( ao_driver_t *this_gen, int16_t *data, uint32_t num_fra
}
if (pthread_cond_timedwait( &ao->cond, &ao->write_mutex, &ts ) != 0)
{
- fprintf( stderr, "fifo_audio_out: blocked for more than %d ms,\n", delay);
- fprintf( stderr, "fifo_audio_out: %d sample(s) discarded.\n", num_frames);
+ fprintf( stderr, "[xine_artsplugin audio_fifo_out] blocked for more than %d ms,\n", delay);
+ fprintf( stderr, "[xine_artsplugin audio_fifo_out] %d sample(s) discarded.\n", num_frames);
pthread_mutex_unlock( &ao->write_mutex );
return 0;
}
@@ -343,7 +343,7 @@ unsigned long ao_fifo_read( void *ao_driver, unsigned char **buffer,
if (bytes_to_read > bytes_in_buffer)
{
- fprintf( stderr, "fifo_audio_out: audio buffer underflow!\n" );
+ fprintf( stderr, "[xine_artsplugin audio_fifo_out] audio buffer underflow!\n" );
bytes_to_read = bytes_in_buffer - (bytes_in_buffer % ao->bytes_per_frame);
}
if ((ao->fifo_read_ptr + bytes_to_read) > ao->fifo_size)