From febbf740799d85dfbdca965efa9867fd70fa2cfc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 3 Feb 2009 03:35:55 +0100 Subject: make use of PA_STREAM_FAIL_ON_SUSPEND if defined --- src/pulse.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pulse.c b/src/pulse.c index 77a6c87..ed371de 100644 --- a/src/pulse.c +++ b/src/pulse.c @@ -800,7 +800,13 @@ int driver_play(ca_context *c, uint32_t id, ca_proplist *proplist, ca_finish_cal pa_stream_set_state_callback(out->stream, stream_state_cb, out); pa_stream_set_write_callback(out->stream, stream_write_cb, out); - if (pa_stream_connect_playback(out->stream, NULL, NULL, 0, NULL, NULL) < 0) { + if (pa_stream_connect_playback(out->stream, NULL, NULL, +#ifdef PA_STREAM_FAIL_ON_SUSPEND + PA_STREAM_FAIL_ON_SUSPEND +#else + 0 +#endif + , NULL, NULL) < 0) { ret = translate_error(pa_context_errno(p->context)); pa_threaded_mainloop_unlock(p->mainloop); goto finish; -- cgit