summaryrefslogtreecommitdiffstats
path: root/audio/sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/sink.c b/audio/sink.c
index 237fcaee..64d0a27d 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -113,6 +113,10 @@ void stream_state_changed(struct avdtp_stream *stream, avdtp_state_t old_state,
AUDIO_SINK_INTERFACE,
"Connected",
DBUS_TYPE_INVALID);
+
+ if (!sink->initiator)
+ break;
+
if (sink->c && sink->c->pkt) {
cmd_err = avdtp_start(sink->session, stream);
if (cmd_err < 0) {