From 1a8645a9fe1f85421b3b906bd1fe355432e7c099 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 10 Mar 2008 13:09:59 +0100 Subject: pulse - Remove another assert Remove another assert that results in an unexpected crash. Signed-off-by: Takashi Iwai --- pulse/pcm_pulse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pulse/pcm_pulse.c') 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) -- cgit