diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-05 00:03:16 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-05 00:03:16 +0000 |
commit | 6c4fd620408b3f14a1d4164d58db70df7a252674 (patch) | |
tree | 3767a0fb76a3941267f9b6980075149dc31cb6bc /polyp/sound-file-stream.c | |
parent | 57e473b61cf373f8d9befb03d359b999eca4262b (diff) |
implement proper logging
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@179 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sound-file-stream.c')
-rw-r--r-- | polyp/sound-file-stream.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/polyp/sound-file-stream.c b/polyp/sound-file-stream.c index a77b58139..c667f5ff6 100644 --- a/polyp/sound-file-stream.c +++ b/polyp/sound-file-stream.c @@ -33,6 +33,7 @@ #include "sound-file-stream.h" #include "sink-input.h" #include "xmalloc.h" +#include "log.h" #define BUF_SIZE (1024*10) @@ -128,7 +129,7 @@ int pa_play_file(struct pa_sink *sink, const char *fname, pa_volume_t volume) { memset(&sfinfo, 0, sizeof(sfinfo)); if (!(u->sndfile = sf_open(fname, SFM_READ, &sfinfo))) { - fprintf(stderr, __FILE__": Failed to open file %s\n", fname); + pa_log(__FILE__": Failed to open file %s\n", fname); goto fail; } @@ -137,7 +138,7 @@ int pa_play_file(struct pa_sink *sink, const char *fname, pa_volume_t volume) { ss.channels = sfinfo.channels; if (!pa_sample_spec_valid(&ss)) { - fprintf(stderr, __FILE__": Unsupported sample format in file %s\n", fname); + pa_log(__FILE__": Unsupported sample format in file %s\n", fname); goto fail; } |