mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Improve error messages a bit.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1320 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
cf7b401ac6
commit
26bfce6281
3 changed files with 8 additions and 3 deletions
|
|
@ -559,8 +559,10 @@ int main(int argc, char *argv[]) {
|
||||||
mainloop = pa_mainloop_new();
|
mainloop = pa_mainloop_new();
|
||||||
assert(mainloop);
|
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;
|
goto finish;
|
||||||
|
}
|
||||||
|
|
||||||
c->is_system_instance = !!conf->system_instance;
|
c->is_system_instance = !!conf->system_instance;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ int pa_make_secure_dir(const char* dir, mode_t m, uid_t uid, gid_t gid) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
fprintf(stderr, "FIXME: pa_make_secure_dir()\n");
|
pa_log_warn("secure directory creation not supported on Win32.");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
#include <pulsecore/core-subscribe.h>
|
#include <pulsecore/core-subscribe.h>
|
||||||
#include <pulsecore/props.h>
|
#include <pulsecore/props.h>
|
||||||
#include <pulsecore/random.h>
|
#include <pulsecore/random.h>
|
||||||
|
#include <pulsecore/log.h>
|
||||||
|
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
|
||||||
|
|
@ -48,8 +49,10 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) {
|
||||||
pa_core* c;
|
pa_core* c;
|
||||||
pa_mempool *pool;
|
pa_mempool *pool;
|
||||||
|
|
||||||
if (!(pool = pa_mempool_new(shared)))
|
if (!(pool = pa_mempool_new(shared))) {
|
||||||
|
pa_log("pa_mempool_new() failed.");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
c = pa_xnew(pa_core, 1);
|
c = pa_xnew(pa_core, 1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue