diff options
| -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)  | 
