From c020b7240f8f6b72ffbb6c6f327a63f2da14e6a9 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 7 Dec 2007 09:12:00 +0000 Subject: a2dp_source_suspend should call avdtp_suspend and not avdtp_start if the state is STREAMING --- audio/a2dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio/a2dp.c') 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; -- cgit