[pulseaudio-discuss] [PATCH 2/9] role-cork: React to mute/cork of trigger streams and to proplist changes

Tanu Kaskinen tanuk at iki.fi
Fri Mar 11 08:46:03 UTC 2016


On Thu, 2015-03-26 at 21:54 +0100, Georg Chini wrote:
> +static const char *is_trigger_stream(struct userdata *u, pa_sink_input *i) {

I'd expect a function named "is_foo" to return a boolean value. It
looks confusing to me to have assignments like "role =
is_trigger_stream()". If the function returns some additional
information, I think it would be better to do that with a return
parameter. I can make a separate patch for this, though, so I'll push
this patch as is.

-- 
Tanu


More information about the pulseaudio-discuss mailing list