summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-12-07 09:12:00 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-12-07 09:12:00 +0000
commitc020b7240f8f6b72ffbb6c6f327a63f2da14e6a9 (patch)
treefc708d58844b12827e421ceb2309113c89f389f1 /audio
parent70f4ad8b4bf7d477bcfc7efdec7f25b1f9517cd3 (diff)
a2dp_source_suspend should call avdtp_suspend and not avdtp_start if the state is STREAMING
Diffstat (limited to 'audio')
-rw-r--r--audio/a2dp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c
index e4f65f3e..f0ada567 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -1163,8 +1163,8 @@ unsigned int a2dp_source_suspend(struct avdtp *session, struct a2dp_sep *sep,
g_idle_add((GSourceFunc) finalize_suspend, setup);
break;
case AVDTP_STATE_STREAMING:
- if (avdtp_start(session, sep->stream) < 0) {
- error("avdtp_start failed");
+ if (avdtp_suspend(session, sep->stream) < 0) {
+ error("avdtp_suspend failed");
goto failed;
}
break;