Don't hit an assert when checking for idleness

Closes #398
This commit is contained in:
Lennart Poettering 2008-12-17 21:03:17 +01:00
parent cb6a919730
commit 82f09b6d8f
4 changed files with 18 additions and 5 deletions

View file

@ -652,7 +652,9 @@ unsigned pa_source_check_suspend(pa_source *s) {
uint32_t idx;
pa_source_assert_ref(s);
pa_assert(PA_SOURCE_IS_LINKED(s->state));
if (!PA_SOURCE_IS_LINKED(s->state))
return 0;
ret = 0;