mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
core: Misc srbchannel cleanup
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
1afec0e5a3
commit
f79b1bc3d9
3 changed files with 4 additions and 4 deletions
|
|
@ -72,7 +72,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, bool shared, size_t shm_size) {
|
|||
|
||||
if (shared) {
|
||||
if (!(pool = pa_mempool_new(shared, shm_size))) {
|
||||
pa_log_warn("failed to allocate shared memory pool. Falling back to a normal memory pool.");
|
||||
pa_log_warn("Failed to allocate shared memory pool. Falling back to a normal memory pool.");
|
||||
shared = false;
|
||||
}
|
||||
}
|
||||
|
|
@ -128,7 +128,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, bool shared, size_t shm_size) {
|
|||
pa_silence_cache_init(&c->silence_cache);
|
||||
|
||||
if (shared && !(c->rw_mempool = pa_mempool_new(shared, shm_size)))
|
||||
pa_log_warn("failed to allocate shared writable memory pool.");
|
||||
pa_log_warn("Failed to allocate shared writable memory pool.");
|
||||
if (c->rw_mempool)
|
||||
pa_mempool_set_is_remote_writable(c->rw_mempool, true);
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#include <pulsecore/socket.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define MAX_ANCIL_FDS (2)
|
||||
#define MAX_ANCIL_FDS 2
|
||||
|
||||
typedef struct pa_creds pa_creds;
|
||||
typedef struct pa_ancil pa_ancil;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ size_t pa_srbchannel_read(pa_srbchannel *sr, void *data, size_t l) {
|
|||
memcpy(data, ptr, toread);
|
||||
if (pa_ringbuffer_drop(&sr->rb_read, toread)) {
|
||||
#ifdef DEBUG_SRBCHANNEL
|
||||
pa_log("read from full output buffer, signalling fdsem");
|
||||
pa_log("Read from full output buffer, signalling fdsem");
|
||||
#endif
|
||||
pa_fdsem_post(sr->sem_write);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue