summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-03-10 13:09:59 +0100
committerTakashi Iwai <tiwai@suse.de>2008-06-06 15:53:58 +0200
commit1a8645a9fe1f85421b3b906bd1fe355432e7c099 (patch)
tree698d11fa43369d9723b26baf996926002158e4aa
parentf1f1aa2a8698ab414e8399104da0684d33836c36 (diff)
pulse - Remove another assert
Remove another assert that results in an unexpected crash. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--pulse/pcm_pulse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c
index 15e3f50..cfa8121 100644
--- a/pulse/pcm_pulse.c
+++ b/pulse/pcm_pulse.c
@@ -73,9 +73,10 @@ static int pulse_start(snd_pcm_ioplug_t *io)
assert(pcm);
assert(pcm->p);
- pa_threaded_mainloop_lock(pcm->p->mainloop);
+ if (pcm->stream == NULL)
+ return 0;
- assert(pcm->stream);
+ pa_threaded_mainloop_lock(pcm->p->mainloop);
err = pulse_check_connection(pcm->p);
if (err < 0)