diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-25 04:34:04 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2010-11-25 16:38:32 +0000 |
commit | af18bc8038177a4b83171671daaf771ecf353b8e (patch) | |
tree | 1cb11977342fda701d8a5f69826cc0aac0bf3007 | |
parent | c72d8789139257528114ca11baa341ec2783eaea (diff) |
alsa-source: fix enum types
-rw-r--r-- | src/modules/alsa/alsa-source.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/alsa/alsa-source.c b/src/modules/alsa/alsa-source.c index 0b953143c..d2147498f 100644 --- a/src/modules/alsa/alsa-source.c +++ b/src/modules/alsa/alsa-source.c @@ -1040,9 +1040,9 @@ static int source_set_state_cb(pa_source *s, pa_source_state_t new_state) { old_state = pa_source_get_state(u->source); - if (PA_SINK_IS_OPENED(old_state) && new_state == PA_SINK_SUSPENDED) + if (PA_SOURCE_IS_OPENED(old_state) && new_state == PA_SOURCE_SUSPENDED) reserve_done(u); - else if (old_state == PA_SINK_SUSPENDED && PA_SINK_IS_OPENED(new_state)) + else if (old_state == PA_SOURCE_SUSPENDED && PA_SOURCE_IS_OPENED(new_state)) if (reserve_init(u, u->device_name) < 0) return -PA_ERR_BUSY; |