diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/pacat.c | 6 | ||||
-rw-r--r-- | src/utils/pacmd.c | 3 | ||||
-rw-r--r-- | src/utils/pactl.c | 2 | ||||
-rw-r--r-- | src/utils/padsp.c | 6 | ||||
-rw-r--r-- | src/utils/pax11publish.c | 3 |
5 files changed, 12 insertions, 8 deletions
diff --git a/src/utils/pacat.c b/src/utils/pacat.c index 79936fd7..749593ea 100644 --- a/src/utils/pacat.c +++ b/src/utils/pacat.c @@ -105,6 +105,7 @@ static void context_drain_complete(pa_context*c, void *userdata) { /* Stream draining complete */ static void stream_drain_complete(pa_stream*s, int success, void *userdata) { + pa_operation *o = NULL; if (!success) { pa_log(_("Failed to drain stream: %s"), pa_strerror(pa_context_errno(context))); @@ -118,9 +119,10 @@ static void stream_drain_complete(pa_stream*s, int success, void *userdata) { pa_stream_unref(stream); stream = NULL; - if (!pa_context_drain(context, context_drain_complete, NULL)) + if (!(o = pa_context_drain(context, context_drain_complete, NULL))) pa_context_disconnect(context); else { + pa_operation_unref(o); if (verbose) pa_log(_("Draining connection to server.")); } @@ -604,6 +606,7 @@ static void stream_update_timing_callback(pa_stream *s, int success, void *userd fprintf(stderr, " \r"); } +#ifdef SIGUSR1 /* Someone requested that the latency is shown */ static void sigusr1_signal_callback(pa_mainloop_api*m, pa_signal_event *e, int sig, void *userdata) { @@ -612,6 +615,7 @@ static void sigusr1_signal_callback(pa_mainloop_api*m, pa_signal_event *e, int s pa_operation_unref(pa_stream_update_timing_info(stream, stream_update_timing_callback, NULL)); } +#endif static void time_event_callback(pa_mainloop_api *m, pa_time_event *e, const struct timeval *t, void *userdata) { if (stream && pa_stream_get_state(stream) == PA_STREAM_READY) { diff --git a/src/utils/pacmd.c b/src/utils/pacmd.c index 143a948d..4d07c4c2 100644 --- a/src/utils/pacmd.c +++ b/src/utils/pacmd.c @@ -44,8 +44,7 @@ #include <pulsecore/pid.h> int main(int argc, char*argv[]) { - - pid_t pid ; + pid_t pid; int fd = -1; int ret = 1, i; struct sockaddr_un sa; diff --git a/src/utils/pactl.c b/src/utils/pactl.c index 98c4d455..ad5c0b81 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -723,7 +723,7 @@ static void stream_write_callback(pa_stream *s, size_t length, void *userdata) { sample_length -= length; - if (sample_length <= 0) { + if (sample_length <= 0) { pa_stream_set_write_callback(sample_stream, NULL, NULL); pa_stream_finish_upload(sample_stream); } diff --git a/src/utils/padsp.c b/src/utils/padsp.c index ec0c46d9..ab9d18a3 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -282,7 +282,7 @@ static void debug(int level, const char *format, ...) PA_GCC_PRINTF_ATTR(2,3); #define DEBUG_LEVEL_ALWAYS 0 #define DEBUG_LEVEL_NORMAL 1 -#define DEBUG_LEVEL_VERBOSE 2 +#define DEBUG_LEVEL_VERBOSE 2 static void debug(int level, const char *format, ...) { va_list ap; @@ -1596,7 +1596,7 @@ static int mixer_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno *(int*) argp = ((v->values[0]*100/PA_VOLUME_NORM)) | - ((v->values[v->channels > 1 ? 1 : 0]*100/PA_VOLUME_NORM) << 8); + ((v->values[v->channels > 1 ? 1 : 0]*100/PA_VOLUME_NORM) << 8); pa_threaded_mainloop_unlock(i->mainloop); @@ -2077,7 +2077,7 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno) case SNDCTL_DSP_GETCAPS: debug(DEBUG_LEVEL_NORMAL, __FILE__": SNDCTL_DSP_CAPS\n"); - *(int*) argp = DSP_CAP_DUPLEX | DSP_CAP_TRIGGER + *(int*) argp = DSP_CAP_DUPLEX | DSP_CAP_TRIGGER #ifdef DSP_CAP_MULTI | DSP_CAP_MULTI #endif diff --git a/src/utils/pax11publish.c b/src/utils/pax11publish.c index e155888c..6600363b 100644 --- a/src/utils/pax11publish.c +++ b/src/utils/pax11publish.c @@ -33,6 +33,7 @@ #include <pulse/util.h> #include <pulse/i18n.h> +#include <pulse/client-conf.h> #include <pulsecore/core-util.h> #include <pulsecore/log.h> @@ -40,7 +41,6 @@ #include <pulsecore/native-common.h> #include <pulsecore/x11prop.h> -#include "../pulse/client-conf.h" int main(int argc, char *argv[]) { const char *dname = NULL, *sink = NULL, *source = NULL, *server = NULL, *cookie_file = PA_NATIVE_COOKIE_FILE; @@ -209,6 +209,7 @@ int main(int argc, char *argv[]) { pa_x11_del_prop(xcb, screen, "PULSE_SOURCE"); pa_x11_del_prop(xcb, screen, "PULSE_ID"); pa_x11_del_prop(xcb, screen, "PULSE_COOKIE"); + pa_x11_del_prop(xcb, screen, "PULSE_SESSION_ID"); break; default: |