]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
pulse - Remove another assert
authorTakashi Iwai <tiwai@suse.de>
Mon, 10 Mar 2008 12:09:59 +0000 (13:09 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Jun 2008 13:53:58 +0000 (15:53 +0200)
Remove another assert that results in an unexpected crash.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
pulse/pcm_pulse.c

index 15e3f50b78ba8b51610914072e94278b0388bbee..cfa81219861532ca163d6e6d29f72656366fbacc 100644 (file)
@@ -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)