[pulseaudio-commits] r1320 - in /trunk/src: daemon/main.c pulsecore/core-util.c pulsecore/core.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue Aug 22 05:46:05 PDT 2006
Author: ossman
Date: Tue Aug 22 14:46:05 2006
New Revision: 1320
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1320&root=pulseaudio&view=rev
Log:
Improve error messages a bit.
Modified:
trunk/src/daemon/main.c
trunk/src/pulsecore/core-util.c
trunk/src/pulsecore/core.c
Modified: trunk/src/daemon/main.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/daemon/main.c?rev=1320&root=pulseaudio&r1=1319&r2=1320&view=diff
==============================================================================
--- trunk/src/daemon/main.c (original)
+++ trunk/src/daemon/main.c Tue Aug 22 14:46:05 2006
@@ -559,8 +559,10 @@
mainloop = pa_mainloop_new();
assert(mainloop);
- if (!(c = pa_core_new(pa_mainloop_get_api(mainloop), !conf->disable_shm)))
+ if (!(c = pa_core_new(pa_mainloop_get_api(mainloop), !conf->disable_shm))) {
+ pa_log("pa_core_new() failed.");
goto finish;
+ }
c->is_system_instance = !!conf->system_instance;
Modified: trunk/src/pulsecore/core-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core-util.c?rev=1320&root=pulseaudio&r1=1319&r2=1320&view=diff
==============================================================================
--- trunk/src/pulsecore/core-util.c (original)
+++ trunk/src/pulsecore/core-util.c Tue Aug 22 14:46:05 2006
@@ -184,7 +184,7 @@
goto fail;
}
#else
- fprintf(stderr, "FIXME: pa_make_secure_dir()\n");
+ pa_log_warn("secure directory creation not supported on Win32.");
#endif
return 0;
Modified: trunk/src/pulsecore/core.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core.c?rev=1320&root=pulseaudio&r1=1319&r2=1320&view=diff
==============================================================================
--- trunk/src/pulsecore/core.c (original)
+++ trunk/src/pulsecore/core.c Tue Aug 22 14:46:05 2006
@@ -41,6 +41,7 @@
#include <pulsecore/core-subscribe.h>
#include <pulsecore/props.h>
#include <pulsecore/random.h>
+#include <pulsecore/log.h>
#include "core.h"
@@ -48,8 +49,10 @@
pa_core* c;
pa_mempool *pool;
- if (!(pool = pa_mempool_new(shared)))
+ if (!(pool = pa_mempool_new(shared))) {
+ pa_log("pa_mempool_new() failed.");
return NULL;
+ }
c = pa_xnew(pa_core, 1);
More information about the pulseaudio-commits
mailing list