summaryrefslogtreecommitdiff
path: root/src/pa-sink-ctl.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-14 13:42:21 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-14 13:42:21 +0100
commite723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef (patch)
tree1fceedace50a32ad63745981b5182a760387ed44 /src/pa-sink-ctl.c
parentb952910cafdf565b11bfc171a7028bff5206dbf5 (diff)
downloadpa-sink-ctl-e723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef.tar.gz
pa-sink-ctl-e723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef.tar.bz2
pa-sink-ctl-e723c1697c0ec3c0eecbf3797d6c16c69b3cf4ef.zip
Increase warning leaves, and fix new occured ones
Diffstat (limited to 'src/pa-sink-ctl.c')
-rw-r--r--src/pa-sink-ctl.c13
1 files changed, 7 insertions, 6 deletions
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;