]> code.delx.au - pulseaudio/commit
sink, source: Allow calling set_mute() during initialization
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 15 Apr 2014 10:56:07 +0000 (13:56 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 2 May 2014 12:50:15 +0000 (15:50 +0300)
commit5f64ebdfc57f1a5728a7f84d9c69d3a815f467f1
treec878ff2135cee0524ddd5b84d9fa1882b7e27b7f
parent080bdf1b6b1be0df0a77f77838594345481db072
sink, source: Allow calling set_mute() during initialization

Currently the alsa sink and source write directly to s->muted during
initialization, but I think it's better to avoid direct writes, and
use the set_mute() function instead, because that makes it easier to
figure out where s->muted is modified. This patch prevents the
set_mute() call from crashing in the state assertion.
src/pulsecore/sink.c
src/pulsecore/source.c