summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-02-03 03:35:55 +0100
committerLennart Poettering <lennart@poettering.net>2009-02-03 03:35:55 +0100
commitfebbf740799d85dfbdca965efa9867fd70fa2cfc (patch)
treea851fc6ee9ec26046e2273dc9fc6b1e01aca939d
parentebcbcb174bd65aa5aad944337573b1057b68f7ea (diff)
make use of PA_STREAM_FAIL_ON_SUSPEND if defined
-rw-r--r--src/pulse.c8
1 files changed, 7 insertions, 1 deletions
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;