diff options
author | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2013-08-23 13:58:55 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2013-08-27 15:34:33 +0300 |
commit | 441a5a422cd2ea62aa43e62bbb81369d635e61f9 (patch) | |
tree | a31575fca080d15d4f490c26a7677ff7b5ddbf87 /src/modules/alsa/alsa-sink.c | |
parent | a32c5e435452f7e7d1f8f595eb6e494b7c0aaee7 (diff) | |
download | pulseaudio-441a5a422cd2ea62aa43e62bbb81369d635e61f9.tar.gz |
sink, source: Fix error reporting style for rate updates
Diffstat (limited to 'src/modules/alsa/alsa-sink.c')
-rw-r--r-- | src/modules/alsa/alsa-sink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c index f910d1956..6e6064655 100644 --- a/src/modules/alsa/alsa-sink.c +++ b/src/modules/alsa/alsa-sink.c @@ -1593,7 +1593,7 @@ static bool sink_set_formats(pa_sink *s, pa_idxset *formats) { return true; } -static bool sink_update_rate_cb(pa_sink *s, uint32_t rate) { +static int sink_update_rate_cb(pa_sink *s, uint32_t rate) { struct userdata *u = s->userdata; int i; bool supported = false; @@ -1609,16 +1609,16 @@ static bool sink_update_rate_cb(pa_sink *s, uint32_t rate) { if (!supported) { pa_log_info("Sink does not support sample rate of %d Hz", rate); - return false; + return -1; } if (!PA_SINK_IS_OPENED(s->state)) { pa_log_info("Updating rate for device %s, new rate is %d",u->device_name, rate); u->sink->sample_spec.rate = rate; - return true; + return 0; } - return false; + return -1; } static int process_rewind(struct userdata *u) { |