Diff between a9a177ff820a8d1f3645c89d7e2f4c682b4f3efe and ba01ee9c89e27e39b2cfe44fb627a85afef231a1

Changed Files

File Additions Deletions Status
doc/media-api.txt +9 -1 modified
profiles/audio/transport.c +1 -1 modified

Full Patch

diff --git a/doc/media-api.txt b/doc/media-api.txt
index cdde6ea..bb5ced0 100644
--- a/doc/media-api.txt
+++ b/doc/media-api.txt
@@ -321,12 +321,20 @@ Methods		fd, uint16, uint16 Acquire()
 			Acquire transport file descriptor and the MTU for read
 			and write respectively.
 
+			Possible Errors: org.bluez.Error.NotAuthorized
+					 org.bluez.Error.Failed
+
 		fd, uint16, uint16 TryAcquire()
 
 			Acquire transport file descriptor only if the transport
 			is in "pending" state at the time the message is
 			received by BlueZ. Otherwise no request will be sent
-			to the remote device and the function will just fail.
+			to the remote device and the function will just fail
+			with org.bluez.Error.NotAvailable.
+
+			Possible Errors: org.bluez.Error.NotAuthorized
+					 org.bluez.Error.Failed
+					 org.bluez.Error.NotAvailable
 
 		void Release()
 
diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index 54461d8..58240ac 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -477,7 +477,7 @@ static DBusMessage *try_acquire(DBusConnection *conn, DBusMessage *msg,
 		return btd_error_not_authorized(msg);
 
 	if (transport->state != TRANSPORT_STATE_PENDING)
-		return btd_error_failed(msg, "Transport not playing");
+		return btd_error_not_available(msg);
 
 	owner = media_owner_create(msg);
 	id = transport->resume(transport, owner);