From e723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 14 Dec 2011 13:42:21 +0100 Subject: Increase warning leaves, and fix new occured ones --- src/pa-sink-ctl.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/pa-sink-ctl.c') diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index ba59884..dbd6d19 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -75,7 +75,6 @@ static void sink_info_cb(pa_context *c, const pa_sink_info *i, gint is_last, gpointer userdata) { - g_assert(userdata != NULL); struct context *ctx = userdata; struct sink_info *sink; GList *el; @@ -118,7 +117,6 @@ static void sink_input_info_cb(pa_context *c, const pa_sink_input_info *i, gint is_last, gpointer userdata) { - g_assert(userdata != NULL); struct context *ctx = userdata; struct sink_input_info *sink_input; GList *el; @@ -263,10 +261,13 @@ context_state_callback(pa_context *c, gpointer userdata) pa_operation_unref(op); pa_context_set_subscribe_callback(c, subscribe_cb, ctx); - pa_subscription_mask_t mask = - PA_SUBSCRIPTION_MASK_SINK | - PA_SUBSCRIPTION_MASK_SINK_INPUT; - g_assert((ctx->op = pa_context_subscribe(c, mask, NULL, NULL))); + { + pa_subscription_mask_t mask = + PA_SUBSCRIPTION_MASK_SINK | + PA_SUBSCRIPTION_MASK_SINK_INPUT; + g_assert((ctx->op = pa_context_subscribe(c, mask, + NULL, NULL))); + } ctx->context_ready = TRUE; interface_set_status(ctx, "ready to process events."); break; -- cgit