summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 15:39:59 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 15:39:59 +0300
commitfffc600099fdd44e485fa4925a599d790424f881 (patch)
treeb5f58ee9edee60e282045f46c80491c5beb047e7 /audio
parent06082049381e6b5f95aca2047942db67b1c7fa29 (diff)
Make Headset.Play() succeed if there's a pending HFP triggered SCO
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 443ca2c6..107618e5 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1585,6 +1585,10 @@ static DBusMessage *hs_play(DBusConnection *conn, DBusMessage *msg,
".NotConnected",
"Device not Connected");
case HEADSET_STATE_PLAY_IN_PROGRESS:
+ if (hs->pending && hs->pending->msg == NULL) {
+ hs->pending->msg = dbus_message_ref(msg);
+ return NULL;
+ }
return g_dbus_create_error(msg, ERROR_INTERFACE
".InProgress",
"Play in Progress");