diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-03-10 13:09:59 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-06-06 15:53:58 +0200 |
commit | 1a8645a9fe1f85421b3b906bd1fe355432e7c099 (patch) | |
tree | 698d11fa43369d9723b26baf996926002158e4aa /pulse | |
parent | f1f1aa2a8698ab414e8399104da0684d33836c36 (diff) |
pulse - Remove another assert
Remove another assert that results in an unexpected crash.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'pulse')
-rw-r--r-- | pulse/pcm_pulse.c | 5 |
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) |