[pulseaudio-commits] r1321 - /trunk/src/pulsecore/core.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue Aug 22 05:51:30 PDT 2006
Author: ossman
Date: Tue Aug 22 14:51:29 2006
New Revision: 1321
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1321&root=pulseaudio&view=rev
Log:
Fall back to creating a "normal" memory pool if unable to get a shared one.
Modified:
trunk/src/pulsecore/core.c
Modified: trunk/src/pulsecore/core.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core.c?rev=1321&root=pulseaudio&r1=1320&r2=1321&view=diff
==============================================================================
--- trunk/src/pulsecore/core.c (original)
+++ trunk/src/pulsecore/core.c Tue Aug 22 14:51:29 2006
@@ -49,11 +49,20 @@
pa_core* c;
pa_mempool *pool;
- if (!(pool = pa_mempool_new(shared))) {
- pa_log("pa_mempool_new() failed.");
- return NULL;
+ if (shared) {
+ if (!(pool = pa_mempool_new(shared))) {
+ pa_log_warn("failed to allocate shared memory pool. Falling back to a normal memory pool.");
+ shared = 0;
+ }
+ }
+
+ if (!shared) {
+ if (!(pool = pa_mempool_new(shared))) {
+ pa_log("pa_mempool_new() failed.");
+ return NULL;
+ }
}
-
+
c = pa_xnew(pa_core, 1);
c->mainloop = m;
More information about the pulseaudio-commits
mailing list