From 6c4fd620408b3f14a1d4164d58db70df7a252674 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 5 Sep 2004 00:03:16 +0000 Subject: implement proper logging git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@179 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/sound-file-stream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'polyp/sound-file-stream.c') diff --git a/polyp/sound-file-stream.c b/polyp/sound-file-stream.c index a77b5813..c667f5ff 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; } -- cgit